aboutsummaryrefslogtreecommitdiff
path: root/binutils/ChangeLog
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-12-03 16:10:37 +1030
committerAlan Modra <amodra@gmail.com>2020-12-04 11:12:21 +1030
commit288f0ba26478ec3a8926d54319b9c899e64e26a7 (patch)
tree85c201688e41ebb65db77e9f3d579c90601f507b /binutils/ChangeLog
parent726d7d1ecfd1fc0966983e1d5e59b527b90cf7c5 (diff)
downloadgdb-288f0ba26478ec3a8926d54319b9c899e64e26a7.zip
gdb-288f0ba26478ec3a8926d54319b9c899e64e26a7.tar.gz
gdb-288f0ba26478ec3a8926d54319b9c899e64e26a7.tar.bz2
asan: readelf: memory leaks
This tidies some code used by readelf, hopefully fixing some intermittent oss-fuzz bug reports that likely could only be reproduced by feeding readelf two or more object files on the command line. The second and subsequent file may see non-zero state in .bss variables, and non-initial values in .data variables. This patch fixes some of those, and moves some .data variables to .rodata. * dwarf.c (frame_display_row): Do without static variable "sloc". (cu_tu_indexes_read): Move to file scope. (free_debug_memory): Reset it here, along with level_type_signed. Free and clear a number of other static variables. * readelf.c (arm_attr_public_tag <table>): Constify, updating.. (arm_attr_tag_*): ..all these uses. (process_mips_specific): Free "rels" on error path.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r--binutils/ChangeLog10
1 files changed, 10 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index fbd14f1..ccb9da5 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,13 @@
+2020-12-04 Alan Modra <amodra@gmail.com>
+
+ * dwarf.c (frame_display_row): Do without static variable "sloc".
+ (cu_tu_indexes_read): Move to file scope.
+ (free_debug_memory): Reset it here, along with level_type_signed.
+ Free and clear a number of other static variables.
+ * readelf.c (arm_attr_public_tag <table>): Constify, updating..
+ (arm_attr_tag_*): ..all these uses.
+ (process_mips_specific): Free "rels" on error path.
+
2020-11-27 Nick Clifton <nickc@redhat.com>
PR 26865