Fix heap-buffer address violation when reading version data from a corrupt binary.
authorNick Clifton <nickc@redhat.com>
Fri, 28 Apr 2017 10:21:53 +0000 (11:21 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 28 Apr 2017 10:21:53 +0000 (11:21 +0100)
commit4e3afec278d1fb55b983751d02119f65566bd094
tree02ebb08c7bf06f6860b1dc9d1c3eddaa9df6af7b
parentd949ff5607b9f595e0eed2ff15fbe5eb84eb3a34
Fix heap-buffer address violation when reading version data from a corrupt binary.

PR binutils/21437
* readelf.c (process_version_sections): Check for underflow when
computing the start address of the auxillary version data.
binutils/ChangeLog
binutils/readelf.c