]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Re: PR31692, objdump fails .debug_info size check
authorAlan Modra <amodra@gmail.com>
Fri, 10 May 2024 12:45:06 +0000 (22:15 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 10 May 2024 13:47:03 +0000 (23:17 +0930)
commitad658482c1e4feec4ac99c8e7df17ff78d0c2996
tree05bae4a8580a86967362d2e304508c98075d7abb
parenta4f76c0765a0b9c643dc91d5a398a1cd9519572b
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.
binutils/objdump.c