PR21994, readelf looping on verdefs
authorAlan Modra <amodra@gmail.com>
Fri, 25 Aug 2017 02:11:06 +0000 (11:41 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 25 Aug 2017 02:53:30 +0000 (12:23 +0930)
commit1445030f313d9b251a6a27c8bdf52197520396e2
treeae30aa0a8c459095fa0e03296a25eece99e12534
parent176047c9f2ec8ccb4e0b6bfade4f21cb25d986e9
PR21994, readelf looping on verdefs

PR 21994
* readelf.c (process_version_sections <SHT_GNU_verdef>): Check
vd_aux and vda_next for sanity.  Delete "end".  Correct overflow
checks.
(process_version_sections <SHT_GNU_verneed>): Correct overflow
check.  Don't report invalid vna_next on overflow.  Do report
invalid vna_next on size less than aux info.
binutils/ChangeLog
binutils/readelf.c