This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] fix ldd segfault


Hi,

_dl_check_map_versions() contains an optimization for trace mode which in
certain circumstances may lead to improper highest version index
initialization and segfault in trace mode:

Program received signal SIGSEGV, Segmentation fault.
0x0000555555561722 in _dl_check_map_versions (map=0x2aaaaaaab000, verbose=1, trace_mode=1)
    at dl-version.c:328
328                       map->l_versions[ndx].filename = &strtab[ent->vn_file];

Original bug report (in Russian):
https://bugzilla.altlinux.org/show_bug.cgi?id=11271

Proposed fix is attached.


-- 
ldv

Attachment: glibc-2.5-alt-_dl_check_map_versions.patch
Description: Text document

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]