This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: glibc 2.2 (ldconfig has a bug)
- To: Denis Zaitsev <zzz at cd-club dot ru>
- Subject: Re: glibc 2.2 (ldconfig has a bug)
- From: Andreas Jaeger <aj at suse dot de>
- Date: 14 Nov 2000 19:13:52 +0100
- Cc: Ulrich Drepper <drepper at cygnus dot com>,GNU libc testers <libc-alpha at sourceware dot cygnus dot com>,bug-glibc at gnu dot org, VGER gcc list <linux-gcc at vger dot kernel dot org>
- References: <m3vgtwip5w.fsf@otr.mynet.cygnus.com><20001114203905.A144@zzz.zzz>
>>>>> Denis Zaitsev writes:
> Now it's indeed ldconfig... Here is the patch.
> --- glibc-2.2/elf/ldconfig.c Tue Nov 14 20:05:26 2000
> +++ glibc-2.2/elf/ldconfig.c Tue Nov 14 20:05:02 2000
> @@ -370,13 +370,13 @@
> /* Get complete path. */
> full_libname = alloca (strlen (path) + strlen (libname) + 2);
> - full_soname = alloca (strlen (path) + strlen (libname) + 2);
> + full_soname = alloca (strlen (path) + strlen (soname) + 2);
> sprintf (full_libname, "%s/%s", path, libname);
> sprintf (full_soname, "%s/%s", path, soname);
> if (opt_chroot)
> {
> real_full_libname = alloca (strlen (real_path) + strlen (libname) + 2);
> - real_full_soname = alloca (strlen (real_path) + strlen (libname) + 2);
> + real_full_soname = alloca (strlen (real_path) + strlen (soname) + 2);
> sprintf (real_full_libname, "%s/%s", real_path, libname);
> sprintf (real_full_soname, "%s/%s", real_path, soname);
> }
> It's merrily. The error was sitting silently until the release... Then
> ld-2.1.97.so became ld-2.2.so, its strlen becomes 3 bytes shorter and
> finito... For other names (on my system) it is stiil working without
> the patch.
Thanks, we've fixed this already in the CVS archive.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj