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 /binutils/ChangeLog | |
parent | bc3609fd3891c1cc0007eccd74bca98aabc03996 (diff) | |
download | gdb-90837ea7211e7911ca6c729c2dd697b35a1054ad.zip gdb-90837ea7211e7911ca6c729c2dd697b35a1054ad.tar.gz gdb-90837ea7211e7911ca6c729c2dd697b35a1054ad.tar.bz2 |
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 'binutils/ChangeLog')
-rw-r--r-- | binutils/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index ad3846a..7fb2dbe 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,10 @@ +2020-04-26 Alan Modra <amodra@gmail.com> + + * 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. + 2020-04-24 Alan Modra <amodra@gmail.com> * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains |