[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ldconfig bug??
From: |
Takashi SHINOZAKI |
Subject: |
ldconfig bug?? |
Date: |
Wed, 15 Nov 2000 16:53:41 +0900 |
Hello
A new ldconfig in glibc2.2 has a problem in my system.
'full_soname' buffer length is inited by 'libname' length.(copy miss??)
In many case 'libname's length is longer than 'soname's one,
but in any case it isn't. (ex. ld-2.2.so -- ld-linux.so.2)
--- ldconfig.c.orig Mon Oct 9 09:04:48 2000
+++ ldconfig.c Wed Nov 15 08:21:16 2000
@@ -368,17 +368,17 @@
int do_remove = 1;
/* XXX: The logics in this function should be simplified. */
/* 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);
}
else
{
--------------------------------------
Graduate student Takashi Shinozaki
Dept. of Complexity Science and Engineering,
Graduate School of Frontier Sciences, Univ. of Tokyo
e-mail: address@hidden
- ldconfig bug??,
Takashi SHINOZAKI <=