CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2026/05/10 03:10:02

Modified files:
        libexec/ld.so  : library.c library_mquery.c 

Log message:
While technically allowed, shared libraries without PT_LOAD segments
don't really make any sense.  Bail out early to avoid the bits of code
that assume that we have a PT_LOAD sagment.  This avoids a NULL pointer
dereference on i386 (which uses library_mquery.c) or bogus mmap calls
on other architectures (which use library.c).

The potential NULL pointer dereference in library_mquery.c was found by
Frank Denis.

ok guenther@

Reply via email to