diff options
author | Alan Modra <amodra@gmail.com> | 2020-04-26 18:30:50 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-04-26 23:50:18 +0930 |
commit | 90837ea7211e7911ca6c729c2dd697b35a1054ad (patch) | |
tree | dbdaa80baf63732886a2bb797f741942fad09912 /gdb/command.h | |
parent | bc3609fd3891c1cc0007eccd74bca98aabc03996 (diff) | |
download | binutils-gdb-90837ea7211e7911ca6c729c2dd697b35a1054ad.tar.gz |
readelf: NULL dereference
This fixes another missing error check.
* readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
read before dereferencing, and gracefully return. Remove
gnu_hash_error variable. Free gnu hash arrays if number of
syms found is zero.
Diffstat (limited to 'gdb/command.h')
0 files changed, 0 insertions, 0 deletions