1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-18 07:13:36 +02:00
Files
src/libexec/ld.so
kettenis c1b303c820 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@
2026-05-10 09:10:02 +00:00
..