Prevent illegal memory accesses when parsing incorrecctly formated core notes.
authorNick Clifton <nickc@redhat.com>
Thu, 16 Nov 2017 14:53:32 +0000 (14:53 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 16 Nov 2017 14:53:32 +0000 (14:53 +0000)
commit80a0437873045cc08753fcac4af154e2931a99fd
treee3b95fb89146533cc423d735506ad7541741c238
parentd8ae99a7b08e29e31446aee1e47e59943d7d9926
Prevent illegal memory accesses when parsing incorrecctly formated core notes.

PR 22421
* elf.c (elfcore_grok_netbsd_procinfo): Check that the note is big enough.
(elfcore_grok_openbsd_procinfo): Likewise.
(elfcore_grok_nto_status): Likewise.
bfd/ChangeLog
bfd/elf.c