diff options
author | Alan Modra <amodra@gmail.com> | 2017-08-23 15:42:12 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-08-23 19:47:29 +0930 |
commit | 452bf675ea772002aa86fb1d28f3474da70ee1de (patch) | |
tree | 821219936878e06cb9c02af055de728a862efb15 /binutils/ChangeLog | |
parent | 58afddc6c7c5eaacdb68cdc3cacd0f76a3d01490 (diff) | |
download | gdb-452bf675ea772002aa86fb1d28f3474da70ee1de.zip gdb-452bf675ea772002aa86fb1d28f3474da70ee1de.tar.gz gdb-452bf675ea772002aa86fb1d28f3474da70ee1de.tar.bz2 |
PR21990, Integer overflow in process_version_sections
This tidies some of the overflow checking when processing verneed
and verdef sections.
PR 21990
* readelf.c (process_version_sections <SHT_GNU_verneed>): Check
for invalid vn_next field before adding to idx. Use unsigned
long for index vars. Move index checks.
<SHT_GNU_verdef>: Likewise for vd_next.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r-- | binutils/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 3467f09..4bae660 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,11 @@ +2017-08-23 Alan Modra <amodra@gmail.com> + + PR 21990 + * readelf.c (process_version_sections <SHT_GNU_verneed>): Check + for invalid vn_next field before adding to idx. Use unsigned + long for index vars. Move index checks. + <SHT_GNU_verdef>: Likewise for vd_next. + 2017-08-17 Nick Clifton <nickc@redhat.com> * testsuite/binutils-all/note-3-64.s: New test. Checks assembly |