aboutsummaryrefslogtreecommitdiff
path: root/binutils/od-pe.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2025-02-27 20:53:43 +1030
committerAlan Modra <amodra@gmail.com>2025-03-04 08:23:16 +1030
commit7166166ec098b998dbd48e90be40ce880f7d46de (patch)
tree4b557ce47a1c4ebd8f7d1ac08fa30fcfbffc8417 /binutils/od-pe.c
parent11b6914ce6e680d836dfb711ed7d787113c4c656 (diff)
downloadbinutils-7166166ec098b998dbd48e90be40ce880f7d46de.zip
binutils-7166166ec098b998dbd48e90be40ce880f7d46de.tar.gz
binutils-7166166ec098b998dbd48e90be40ce880f7d46de.tar.bz2
rescoff: ensure file is PE
read_coff_rsrc makes one check on object file contents, the existence of a .rsrc section. It doesn't check that the file is PE but blindly accesses bfd pe_data. Fix that by adding the necessary checks. Also, the "resources nest too deep" error isn't an overrun, ie. the "address out of bounds" message isn't correct. Fix that too.
Diffstat (limited to 'binutils/od-pe.c')
0 files changed, 0 insertions, 0 deletions