asan: readelf: wild read in get_num_dynamic_syms
[deliverable/binutils-gdb.git] / binutils / ChangeLog
index bc0c99907bfa9a4825d562940d9aa674cc906858..e906bdf75c47f277ef482438b42d2a92f27377c4 100644 (file)
@@ -1,3 +1,27 @@
+2020-05-21  Alan Modra  <amodra@gmail.com>
+
+       * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
+       access.
+
+2020-05-20  Nelson Chu  <nelson.chu@sifive.com>
+
+       * dwarf.c: Updated since DECLARE_CSR is changed.
+
+2020-05-19  H.J. Lu  <hjl.tools@gmail.com>
+
+       PR binutils/25809
+       * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
+       segment doesn't match the .dynamic section and checks are
+       enabled.
+       (struct filedata): Add dynamic_symtab_section and
+       dynamic_strtab_section fields.
+       (process_section_headers): Set dynamic_symtab_section to the
+       .dynsym section.  Set dynamic_strtab_section to the .dynstr
+       section.
+       (process_dynamic_section): Warn if the .dynsym section doesn't
+       match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
+       DT_STRTAB and DT_STRSZ.  But only if checks are enabled.
+
 2020-05-19  Alan Modra  <amodra@gmail.com>
 
        * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
This page took 0.023196 seconds and 4 git commands to generate.