Fix illegal memory accesses in readelf when parsing a corrupt binary.
authorNick Clifton <nickc@redhat.com>
Fri, 17 Feb 2017 15:59:45 +0000 (15:59 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 17 Feb 2017 15:59:45 +0000 (15:59 +0000)
commitb814a36d3440de95f2ac6eaa4fc7935c322ea456
tree367ca498aee657afc396da5bb981d5d866afe64a
parent1b4b80bf3771dfb886687a61c541d12bfa1f1f51
Fix illegal memory accesses in readelf when parsing a corrupt binary.

PR binutils/21156
* readelf.c (find_section_in_set): Test for invalid section
indicies.
binutils/ChangeLog
binutils/readelf.c