Fix a use-after-free bug in the BFD library when scanning a corrupt ELF file.
authorNick Clifton <nickc@redhat.com>
Mon, 18 May 2020 14:52:03 +0000 (15:52 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 18 May 2020 14:52:03 +0000 (15:52 +0100)
commited02cdb5b78d17429f7e873acc49d94a5a0223d8
treeecfc3cc85c5cda5d67028af4d45a591443a9a439
parent1d72769534bde2c366f670763105f714e0124d01
Fix a use-after-free bug in the BFD library when scanning a corrupt ELF file.

PR 26005
* elf.c (bfd_section_from_shdr): Use bfd_malloc to allocate memory
for the sections_being_created array.
bfd/ChangeLog
bfd/elf.c