Fix out of bounds memory access when trying to allocate space for a note of size -1.
authorNick Clifton <nickc@redhat.com>
Thu, 10 Aug 2017 08:37:36 +0000 (09:37 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 10 Aug 2017 08:37:36 +0000 (09:37 +0100)
commit957e1fc1c5d0262e4b2f764cf031ad1458446498
treef506930d1d7c9475ac2920c8b4d54c1315f80189
parent3ecaa9fd728f6dd23de85efa0ceacf40da444c86
Fix out of bounds memory access when trying to allocate space for a note of size -1.

PR 21933
* elf.c (elf_read_notes): Check for a note size of -1.
bfd/elf.c