]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/readelf.c
asan: readelf leak in hppa_process_unwind
authorAlan Modra <amodra@gmail.com>
Mon, 16 Mar 2020 00:01:45 +0000 (10:31 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 16 Mar 2020 02:35:17 +0000 (13:05 +1030)
commit28d1356774c2c61adc7d6e6723de2351cd9f4ddc
treece6c561ef56ded6fc7725d153e7552e90e8f9b89
parent60e63c3e9750b036d50e58bc173591fa450601b6
asan: readelf leak in hppa_process_unwind

This extracts code reading symbol tables into a common function that
tidies up after errors.  I've also changed an error reporting multiple
string tables to an error on multiple symbol tables.

* readelf.c (get_symbols): New function.
(process_relocs, ia64_process_unwind, hppa_process_unwind),
(arm_process_unwind, get_symbol_for_build_attribute): Use it.
binutils/ChangeLog
binutils/readelf.c