diff options
author | Alan Modra <amodra@gmail.com> | 2020-08-05 10:03:00 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-08-05 10:34:05 +0930 |
commit | 0b97e818464a42305c8243a980a5c13967554fd9 (patch) | |
tree | ab9e326ba16cecab9599dc2ddc96ebdcc7ae86fd /gdb/ieee-float.c | |
parent | b7563b2492962421e1795e2eca61beffbb45e08d (diff) | |
download | binutils-0b97e818464a42305c8243a980a5c13967554fd9.zip binutils-0b97e818464a42305c8243a980a5c13967554fd9.tar.gz binutils-0b97e818464a42305c8243a980a5c13967554fd9.tar.bz2 |
PR26337, Malloc size error in objdump
A malloc failure triggered by a fuzzed object file isn't a real
problem unless objdump doesn't exit cleanly after the failure, which
it does. However we have bfd_malloc_and_get_section to sanity check
size of uncompressed sections before allocating memory. Use it.
PR 26337
* objdump.c (load_specific_debug_section): Don't malloc space for
section contents, use bfd_malloc_and_get_section.
Diffstat (limited to 'gdb/ieee-float.c')
0 files changed, 0 insertions, 0 deletions