Fix seg-fault in the binutils utilities when reading a corrupt input file.
authorNick Clifton <nickc@redhat.com>
Mon, 5 Dec 2016 16:34:45 +0000 (16:34 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 5 Dec 2016 16:34:45 +0000 (16:34 +0000)
commitfa6631b4eecfcca00c13b9594e6336dffd40982f
treee836054631f57ce1951a51e1fbe290c9b8d81b57
parent406bd128dba2a59d0736839fc87a59bce319076c
Fix seg-fault in the binutils utilities when reading a corrupt input file.

PR binutils/20905
* peicode.h (pe_ILF_object_p): Use strnlen to avoid running over
the end of the string buffer.
bfd/ChangeLog
bfd/peicode.h