| commit | 7166166ec098b998dbd48e90be40ce880f7d46de | [log] [tgz] |
|---|---|---|
| author | Alan Modra <amodra@gmail.com> | Thu Feb 27 20:53:43 2025 +1030 |
| committer | Alan Modra <amodra@gmail.com> | Tue Mar 04 08:23:16 2025 +1030 |
| tree | 4b557ce47a1c4ebd8f7d1ac08fa30fcfbffc8417 | |
| parent | 11b6914ce6e680d836dfb711ed7d787113c4c656 [diff] |
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.