asan: more readelf leaks
[deliverable/binutils-gdb.git] / binutils / ChangeLog
index 51a21bf9e9f16e49034390bcbe74452b7f913bb9..cafd0762a651ee76dba1a93b082fdf02f45a56aa 100644 (file)
@@ -1,3 +1,17 @@
+2020-03-13  Alan Modra  <amodra@gmail.com>
+
+       * elfcomm.c (get_archive_member_name): Always return malloc'd
+       string or NULL.
+       * elfedit.c (process_archive): Tidy memory on all return paths.
+       * readelf.c (process_archive): Likewise.
+       (process_symbol_table): Likewise.
+       (ba_cache): New, replacing ..
+       (get_symbol_for_build_attribute): ..static vars here.  Free
+       strtab and symtab before loading new ones.  Reject symtab without
+       valid strtab in loop, breaking out of loop on valid symtab.
+       (process_file): Free ba_cache symtab and strtab here, resetting
+       ba_cache.
+
 2020-03-12  Alan Modra  <amodra@gmail.com>
 
        * readelf.c (process_section_headers): Don't just set
This page took 0.025968 seconds and 4 git commands to generate.