aboutsummaryrefslogtreecommitdiff
path: root/binutils/ChangeLog
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-06-11 12:49:02 +0930
committerAlan Modra <amodra@gmail.com>2021-06-11 14:23:18 +0930
commit066f8fbede55e781c6241c445e0940f8368d0ef9 (patch)
treee2141dd7c4da7a99e434bde0d122ada74d99487f /binutils/ChangeLog
parent4de91c10cdd9f5818599578667802320df305d72 (diff)
downloadgdb-066f8fbede55e781c6241c445e0940f8368d0ef9.zip
gdb-066f8fbede55e781c6241c445e0940f8368d0ef9.tar.gz
gdb-066f8fbede55e781c6241c445e0940f8368d0ef9.tar.bz2
readelf info leaks from one object to the next
A number of filedata entries were not cleared. Make sure they are all cleared out, except the ones needed for archive handling. * readelf.c (struct filedata): Move archive_file_offset and archive_file_size earlier. (free_filedata): Clear using memset.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r--binutils/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index bd91a39..e84f5d3 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,11 @@
2021-06-11 Alan Modra <amodra@gmail.com>
+ * readelf.c (struct filedata): Move archive_file_offset and
+ archive_file_size earlier.
+ (free_filedata): Clear using memset.
+
+2021-06-11 Alan Modra <amodra@gmail.com>
+
* readelf.c (GET_ELF_SYMBOLS): Delete. Replace with..
(get_elf_symbols): ..this new function throughout.
(get_32bit_section_headers): Don't free section_headers.