aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2010-05-03 04:36:11 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2010-05-03 04:36:11 +0000
commit6c88898dd668f21b0e89c8ec15cfb474b2054eea (patch)
treec2e54ffab146ce1dc5f3c9d0e5233efb87ee9abf
parentf00a9d4134a896494685d1b0f78962fb309f74b1 (diff)
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
-rw-r--r--chapter01/changelog.xml6
-rw-r--r--chapter03/patches.xml8
-rw-r--r--chapter06/tar.xml5
-rw-r--r--patches.ent4
4 files changed, 23 insertions, 0 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index 021ea6583..2e238f4f7 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -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.
diff --git a/chapter03/patches.xml b/chapter03/patches.xml
index 9e967f3d4..db5c7a9eb 100644
--- a/chapter03/patches.xml
+++ b/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>
diff --git a/chapter06/tar.xml b/chapter06/tar.xml
index 9b7bc4e4e..52176566f 100644
--- a/chapter06/tar.xml
+++ b/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>
diff --git a/patches.ent b/patches.ent
index 1fbb47614..8cfc62ddd 100644
--- a/patches.ent
+++ b/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">