From 066f8fbede55e781c6241c445e0940f8368d0ef9 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 11 Jun 2021 12:49:02 +0930 Subject: 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. --- binutils/ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'binutils/ChangeLog') 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 + * readelf.c (struct filedata): Move archive_file_offset and + archive_file_size earlier. + (free_filedata): Clear using memset. + +2021-06-11 Alan Modra + * readelf.c (GET_ELF_SYMBOLS): Delete. Replace with.. (get_elf_symbols): ..this new function throughout. (get_32bit_section_headers): Don't free section_headers. -- cgit v1.1