readelf PT_PHDR check
authorAlan Modra <amodra@gmail.com>
Fri, 25 Oct 2019 01:51:35 +0000 (12:21 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 25 Oct 2019 02:59:44 +0000 (13:29 +1030)
commitc0c121b01c8a9408ae22ee9007dd0273f4c8d0be
tree27f0cac4e340b47a217a797cf5ccfa6ce53530c6
parente2ffdcea6c797fe17886024048f33b178b864a67
readelf PT_PHDR check

When PT_PHDR isn't covered by a PT_LOAD header, p_vaddr in PT_PHDR
isn't valid but the value might just pass a vaddr test.  So test
p_offset as well.

* readelf.c (process_program_headers): Check PT_PHDR p_offset
as well as p_vaddr.  Use p_filesz, not p_memsz, in vaddr test.
binutils/ChangeLog
binutils/readelf.c
This page took 0.025387 seconds and 4 git commands to generate.