| 1234567891011121314151617181920212223242526272829303132333435363738394041 | <sect2><title> </title><para> </para></sect2><sect2><title>Installation of Gzip</title><para>The following patch fixes a buffer overflow that occurs when afilename is longer than 1020 characters. It does this by inserting a checkthat the buffer is large enough for the given filename. The program exitswith the message "Filename too long" if the buffer is not large enough.</para><para><screen><userinput>patch -Np1 -i ../gzip-&gzip-patch-version;.patch</userinput></screen></para><para>Prepare Gzip to be compiled:</para><para><screen><userinput>./configure --prefix=/usr</userinput></screen></para><para>Change the default installation directory for Gzip so it willbe installed in the <filename class="directory">/bin</filename>directory:</para><para><screen><userinput>cp gzexe.in{,.backup} &&sed 's%"BINDIR"%/bin%' gzexe.in.backup > gzexe.in</userinput></screen></para><para>Continue with compiling the package:</para><para><screen><userinput>make</userinput></screen></para><para>Install the package:</para><para><screen><userinput>make install</userinput></screen></para><para>Move the Gzip binaries to the <filenameclass="directory">/bin</filename> directory:</para><para><screen><userinput>mv /usr/bin/gzip /bin &&rm /usr/bin/{gunzip,zcat} &&ln -s gzip /bin/gunzip &&ln -s gzip /bin/zcat &&ln -s gunzip /bin/uncompress</userinput></screen></para></sect2>
 |