Prevent a potential illegal memory access in readelf when parsing a note with a zero...
authorNick Clifton <nickc@redhat.com>
Fri, 25 Jan 2019 13:16:06 +0000 (13:16 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 25 Jan 2019 13:16:06 +0000 (13:16 +0000)
commit183445093ebd6be285e29f75b877e62a723918c6
treee2cded412b9707f6f31ad6f88cc697a54d1ee6fc
parent9ed1348c2008f54368f0fd989a0bf2de8b93329a
Prevent a potential illegal memory access in readelf when parsing a note with a zero name size.

PR 24131
* readelf.c (process_notes_at): Prevent an illegal memory access
when the note's namesize is zero.
(decode_tic6x_unwind_bytecode): Add code to handle the case where
no registers are specified in a frame pop instruction.
binutils/ChangeLog
binutils/readelf.c