Fix potential illegal memory accesses when parsing corrupt DWARF data.
authorNick Clifton <nickc@redhat.com>
Mon, 19 Dec 2022 11:13:46 +0000 (11:13 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 19 Dec 2022 11:13:46 +0000 (11:13 +0000)
commit42f39fdedcf3321cab9964945d3f5bca58967b80
treeb132d233254e9007a3253001c41b834759fe7846
parentd14b3ea1c885f3462b9fe26177a47825c3bdbd0a
Fix potential illegal memory accesses when parsing corrupt DWARF data.

PR 29914
* dwarf.c (fetch_indexed_value): Fail if the section is not big
enough to contain a header size field.
(display_debug_addr): Fail if the computed address size is too big
or too small.
binutils/ChangeLog
binutils/dwarf.c