| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 | <sect2><title> </title><para> </para></sect2><sect2><title>Installation of Zlib</title><para>Zlib has a potential buffer overflow in its gzprintf() function,that, though difficult to take advantage of, should be taken care of. Doso by applying this patch:</para><para><screen><userinput>patch -Np1 -i ../zlib-&zlib-patch-version;.patch</userinput></screen></para><para>Prepare Zlib to be compiled:</para><para><screen><userinput>CFLAGS="$CFLAGS -fPIC" \    ./configure --prefix=/usr --shared</userinput></screen></para><para>The <emphasis>-fPIC</emphasis> flag helps to assurequality in the dynamic zlib library.</para><para><screen><userinput>make</userinput></screen></para><para>Install the libraries:</para><para><screen><userinput>make installmake clean./configure --prefix=/usrmakemake testmake install</userinput></screen></para><para>The shared zlib library should be installed in the<filename>/lib</filename> directory. That way, in the eventthat you must boot without the <filename>/usr</filename>directory, vital system programs will still have access tothe library:</para><para><screen><userinput>mv /usr/lib/libz.so.* /lib</userinput></screen></para><para>The <filename>/usr/lib/libz.so</filename> symlink islinked to a file which no longer exists, because we movedit. Create a symbolic link to the new location of thelibrary:</para><para><screen><userinput>ln -sf ../../lib/libz.so.1 /usr/lib/libz.so</userinput></screen></para><para>Zlib does not install its manual page. Issue thefollowing command to install this documentation:</para><para><screen><userinput>cp zlib.3 /usr/share/man/man3</userinput></screen></para></sect2>
 |