ソースを参照

Add a patch to fix a bug that causes a buffer overflow when
creating a new tar file.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9265 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Bruce Dubbs 15 年 前
コミット
6c88898dd6
4 ファイル変更23 行追加0 行削除
  1. 6 0
      chapter01/changelog.xml
  2. 8 0
      chapter03/patches.xml
  3. 5 0
      chapter06/tar.xml
  4. 4 0
      patches.ent

+ 6 - 0
chapter01/changelog.xml

@@ -39,6 +39,12 @@
     <listitem>
       <para>2010-05-03</para>
       <itemizedlist>
+        <listitem>
+          <para>[bdubbs] - Added a patch to fix a buffer overflow 
+          errror in tar.  The fix is specific to building with gcc-4.5
+          and later.
+          Fixes <ulink url="&lfs-ticket-root;2651">#2610</ulink>.</para>
+        </listitem>
         <listitem>
           <para>[bdubbs] - Added precedures for the new diffutils test
           suite.

+ 8 - 0
chapter03/patches.xml

@@ -172,6 +172,14 @@
       </listitem>
     </varlistentry>
 
+    <varlistentry>
+      <term>Tar Overflow Patch - <token>&tar-overflow-patch-size;</token>:</term>
+      <listitem>
+        <para>Download: <ulink url="&patches-root;&tar-overflow-patch;"/></para>
+        <para>MD5 sum: <literal>&tar-overflow-patch-md5;</literal></para>
+      </listitem>
+    </varlistentry>
+
     <!-- <varlistentry>
       <term>Shadow Useradd Patch - <token>&shadow-useradd-patch-size;</token>:</term>
       <listitem>

+ 5 - 0
chapter06/tar.xml

@@ -44,6 +44,11 @@
 
 <screen><userinput remap="pre">sed -i /SIGPIPE/d src/tar.c</userinput></screen>
 
+    <para>Also, fix a bug that causes a buffer overflow when creating a new
+    tar file.  This fix is needed when building with gcc-4.5 and later.</para>
+
+<screen><userinput remap="pre">patch -Np1 -i ../&tar-overflow-patch;</userinput></screen>
+
     <para>Prepare Tar for compilation:</para>
 
 <screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin --libexecdir=/usr/sbin</userinput></screen>

+ 4 - 0
patches.ent

@@ -95,6 +95,10 @@
 <!ENTITY shadow-useradd-patch-md5 "5f35528f38d5432d5fa2dd79d04bdfdd">
 <!ENTITY shadow-useradd-patch-size "6.1 KB"> -->
 
+<!ENTITY tar-overflow-patch "tar-&tar-version;-overflow_fix-1.patch">
+<!ENTITY tar-overflow-patch-md5 "1912ec36d2a0e2b96678651cf583ce6f">
+<!ENTITY tar-overflow-patch-size "1.7 KB"> 
+
 
 <!ENTITY zlib-fpic-patch "zlib-&zlib-version;-fPIC-1.patch">
 <!ENTITY zlib-fpic-patch-md5 "545d60b20bfde6f53023de44438cef59">