diff options
author | Alan Modra <amodra@gmail.com> | 2017-09-27 15:14:00 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-09-27 15:54:18 +0930 |
commit | 6bd6a03d6975a96802b37741a99644570e52a72b (patch) | |
tree | 50db676ae71b1bf684cba370532f78869455d0bf /binutils/ChangeLog | |
parent | cd28e7aaf35f7de5033ecd619b56064136bb190b (diff) | |
download | fsf-binutils-gdb-6bd6a03d6975a96802b37741a99644570e52a72b.zip fsf-binutils-gdb-6bd6a03d6975a96802b37741a99644570e52a72b.tar.gz fsf-binutils-gdb-6bd6a03d6975a96802b37741a99644570e52a72b.tar.bz2 |
PR22216, infinite loop in readelf process_symbol_table
This should make readelf bombproof given a fuzzed DT_HASH. Also
removes a bogus check that would have resulted in wrong histograms.
PR 22216
* readelf.c (process_symbol_table): Check that DT_HASH symbol
chains are only visited once, and report an error if not. Display
invalid symbol index if chain is out of range. Use the same logic
when calculating histograms rather than the PR 17531 fix. Delete
bogus check that chained index is less than number of buckets.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r-- | binutils/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index dc4faf5..a4de14c 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,12 @@ +2017-09-27 Alan Modra <amodra@gmail.com> + + PR 22216 + * readelf.c (process_symbol_table): Check that DT_HASH symbol + chains are only visited once, and report an error if not. Display + invalid symbol index if chain is out of range. Use the same logic + when calculating histograms rather than the PR 17531 fix. Delete + bogus check that chained index is less than number of buckets. + 2017-09-26 Nick Clifton <nickc@redhat.com> PR 22154 |