Fix read-after-free error in readelf when processing multiple, relocated sections...
[deliverable/binutils-gdb.git] / binutils / ChangeLog
index 6480c8f58f80322dab674f2cd7b51328ca9c030f..254268945c97d4c64e58216af1f30c4c54255252 100644 (file)
@@ -1,3 +1,13 @@
+2017-02-13  Nick Clifton  <nickc@redhat.com>
+
+       PR binutils/21139
+       * readelf.c (target_specific_reloc_handling): Add num_syms
+       parameter.  Check for symbol table overflow before accessing
+       symbol value.  If reloc pointer is NULL, discard all saved state.
+       (apply_relocations): Pass num_syms to target_specific_reloc_handling.
+       Call target_specific_reloc_handling with a NULL reloc pointer
+       after processing all of the relocs.
+
 2017-02-13  Nick Clifton  <nickc@redhat.com>
 
        PR binutils/21137
This page took 0.02286 seconds and 4 git commands to generate.