diff options
author | Nick Clifton <nickc@redhat.com> | 2017-02-13 14:03:22 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-02-13 14:03:22 +0000 |
commit | f84ce13b6708801ca1d6289b7c4003e2f5a6d7f9 (patch) | |
tree | 1e79fe5dc248e95d911d0df402e197a7daa94057 /gdb/ui-file.c | |
parent | 5cf30ebf64d3c6da961094c615a94d2f1682a478 (diff) | |
download | gdb-f84ce13b6708801ca1d6289b7c4003e2f5a6d7f9.zip gdb-f84ce13b6708801ca1d6289b7c4003e2f5a6d7f9.tar.gz gdb-f84ce13b6708801ca1d6289b7c4003e2f5a6d7f9.tar.bz2 |
Fix read-after-free error in readelf when processing multiple, relocated sections in an MSP430 binary.
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.
Diffstat (limited to 'gdb/ui-file.c')
0 files changed, 0 insertions, 0 deletions