Prevent a memory allocation failure when parsing corrupt DWARF debug sections.
authorNick Clifton <nickc@redhat.com>
Thu, 26 Nov 2020 17:08:33 +0000 (17:08 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 26 Nov 2020 17:08:33 +0000 (17:08 +0000)
commit647cebce12a6b0a26960220caff96ff38978cf24
tree79ae8b368be9c2e4fa7c4397f9e8f5216059d96f
parent239ca5e497dda2c151009d664d500086a5c2173a
Prevent a memory allocation failure when parsing corrupt DWARF debug sections.

PR 26946
* dwarf2.c (read_section): Check for debug sections with excessive
sizes.
bfd/ChangeLog
bfd/dwarf2.c