diff options
author | Alan Modra <amodra@gmail.com> | 2024-05-10 22:15:06 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-05-10 23:17:03 +0930 |
commit | ad658482c1e4feec4ac99c8e7df17ff78d0c2996 (patch) | |
tree | 05bae4a8580a86967362d2e304508c98075d7abb /ld/ldlang.h | |
parent | a4f76c0765a0b9c643dc91d5a398a1cd9519572b (diff) | |
download | gdb-ad658482c1e4feec4ac99c8e7df17ff78d0c2996.zip gdb-ad658482c1e4feec4ac99c8e7df17ff78d0c2996.tar.gz gdb-ad658482c1e4feec4ac99c8e7df17ff78d0c2996.tar.bz2 |
Re: PR31692, objdump fails .debug_info size check
The fuzzers found a hole. bfd_section_size_insane doesn't check
!SEC_HAS_CONTENTS sections against file size for obvious reasons,
which allows fuzzed debug sections to be stupidly large. Real debug
sections of course always have contents.
PR 31692
* objdump.c (load_specific_debug_section): Don't allow sections
without contents.
Diffstat (limited to 'ld/ldlang.h')
0 files changed, 0 insertions, 0 deletions