r9265 - in trunk/BOOK: . chapter01 chapter03 chapter06

bdubbs at linuxfromscratch.org bdubbs at linuxfromscratch.org
Sun May 2 21:36:11 PDT 2010


Author: bdubbs
Date: 2010-05-02 22:36:11 -0600 (Sun, 02 May 2010)
New Revision: 9265

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter03/patches.xml
   trunk/BOOK/chapter06/tar.xml
   trunk/BOOK/patches.ent
Log:
Add a patch to fix a bug that causes a buffer overflow when
creating a new tar file.

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml	2010-05-03 03:57:13 UTC (rev 9264)
+++ trunk/BOOK/chapter01/changelog.xml	2010-05-03 04:36:11 UTC (rev 9265)
@@ -40,6 +40,12 @@
       <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.
           Thanks to Chris Staub.

Modified: trunk/BOOK/chapter03/patches.xml
===================================================================
--- trunk/BOOK/chapter03/patches.xml	2010-05-03 03:57:13 UTC (rev 9264)
+++ trunk/BOOK/chapter03/patches.xml	2010-05-03 04:36:11 UTC (rev 9265)
@@ -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>

Modified: trunk/BOOK/chapter06/tar.xml
===================================================================
--- trunk/BOOK/chapter06/tar.xml	2010-05-03 03:57:13 UTC (rev 9264)
+++ trunk/BOOK/chapter06/tar.xml	2010-05-03 04:36:11 UTC (rev 9265)
@@ -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>

Modified: trunk/BOOK/patches.ent
===================================================================
--- trunk/BOOK/patches.ent	2010-05-03 03:57:13 UTC (rev 9264)
+++ trunk/BOOK/patches.ent	2010-05-03 04:36:11 UTC (rev 9265)
@@ -95,7 +95,11 @@
 <!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">
 <!ENTITY zlib-fpic-patch-size "21 KB">




More information about the lfs-book mailing list