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
This commit is contained in:
Bruce Dubbs 2010-05-03 04:36:11 +00:00
parent f00a9d4134
commit 6c88898dd6
4 changed files with 23 additions and 0 deletions

View File

@ -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.

View File

@ -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>

View File

@ -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>

View File

@ -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">