Fix seg-fault in readelf when scanniing a corrupt binary.
authorNick Clifton <nickc@redhat.com>
Thu, 3 Sep 2015 15:15:49 +0000 (16:15 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 3 Sep 2015 15:15:49 +0000 (16:15 +0100)
commit1a9155522d3d1f6aded1178ad7038e846b6d67ba
treef79b0fa78874cdbd0bd46c0758d058b8853f405f
parent39edd165f42176f8c1d40e08d63f344f10241870
Fix seg-fault in readelf when scanniing a corrupt binary.

PR binutils/18879
* readelf.c (get_unwind_section_word): Check for negative offsets
and very small sections.
(dump_arm_unwind): Warn if the table offset is too large.
binutils/ChangeLog
binutils/readelf.c