]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/ChangeLog
readelf: segfault at readelf.c:12227
authorAlan Modra <amodra@gmail.com>
Mon, 20 Apr 2020 01:31:47 +0000 (11:01 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 20 Apr 2020 01:39:58 +0000 (11:09 +0930)
commita5e0be5cb29bcbcfee6f1ead2daed9889a2a6ac6
tree2cf993358a3de2429a164bd3a037cb75f8cabcdb
parent8ff66993e0b57b20067d7a1b6c72a72f4cada2cf
readelf: segfault at readelf.c:12227

This is another one where not cleaning up sufficiently after
processing one file can lead to errors when processing the next file.
We have ngnuchains non-zero but gnuchains NULL in the following:
  off < ngnuchains && (gnuchains[off] & 1) == 0

* readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
and nbuckets.
binutils/ChangeLog
binutils/readelf.c