Prevent an illegal memory access by objdump when parsing a corrupt file on a 32-bit...
authorNick Clifton <nickc@redhat.com>
Tue, 19 Mar 2019 13:39:30 +0000 (13:39 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 19 Mar 2019 13:39:30 +0000 (13:39 +0000)
commit634557801d909982b47b1723f4216ebe8bc784aa
treea336984f54bec19fd0bb6d7e9b0257bbae195acf
parent392a59728b7286d5fd1a1c377de3c40334bbb36f
Prevent an illegal memory access by objdump when parsing a corrupt file on a 32-bit host.

PR 24360
* objdump.c (load_specific_debug_section): Check that the amount
of memory to be allocated matches the size of the section.
binutils/ChangeLog
binutils/objdump.c