Fix runtime seg-fault in readelf when parsing a corrupt MIPS binary.
authorNick Clifton <nickc@redhat.com>
Mon, 3 Apr 2017 10:13:21 +0000 (11:13 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 3 Apr 2017 10:13:21 +0000 (11:13 +0100)
commit75ec1fdbb797a389e4fe4aaf2e15358a070dcc19
treea83b024d470382360aa9003c6308ab069cbcc688
parentf32ba72991d2406b21ab17edc234a2f3fa7fb23d
Fix runtime seg-fault in readelf when parsing a corrupt MIPS binary.

PR binutils/21344
* readelf.c (process_mips_specific): Check for an out of range GOT
entry before reading the module pointer.
binutils/ChangeLog
binutils/readelf.c