- use IS_ELF() to check the ELF magic bytes
authorjasper <jasper@openbsd.org>
Thu, 13 Jul 2023 19:04:50 +0000 (19:04 +0000)
committerjasper <jasper@openbsd.org>
Thu, 13 Jul 2023 19:04:50 +0000 (19:04 +0000)
commitfbc429365932c6266257a905bfa231397ce9bf98
tree62c8455074d27eaa3301d4aa4ec5c5b1e659b6a2
parent2272e5863df41314f4e3e6aab7cf4aa3b69f2fb8
- use IS_ELF() to check the ELF magic bytes
- reject non-sensical program header values which would result in a crash
  when accessing the 0 bytes sized buffer allocated due to it

ok deraadt@ kettenis@
libexec/ld.so/ldd/ldd.c