]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/ChangeLog
Re: asan: more readelf leaks
authorAlan Modra <amodra@gmail.com>
Sat, 14 Mar 2020 08:28:11 +0000 (18:58 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 14 Mar 2020 09:53:52 +0000 (20:23 +1030)
commit1bd6175ae79099173c1510d209ad9978129e22c0
treeff205dcc70e9b08e22c00db25bee99c0caf32724
parent2ac70237d2458fb2eb5e73de6bb02a396b5bada0
Re: asan: more readelf leaks

In git commit fd486f32d15e I put some static variables used by
get_symbol_for_build_attribute in a file scope ba_cache struct.  This
was to prevent leaks in get_symbol_for_build_attribute, and to tidy up
before readelf exited.  The patch wasn't quite right though.  When
readelf processes more than one file it was possible to double free
arrays allocated in get_symbol_for_build_attribute.

* readelf.c (process_file): Clean ba_cache.
binutils/ChangeLog
binutils/readelf.c