diff options
author | Alan Modra <amodra@gmail.com> | 2022-08-04 21:43:22 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-08-05 20:48:29 +0930 |
commit | dfbc689c699b3a15f11e8eb09cb05629f60b36b3 (patch) | |
tree | 7404b8deef08685538738a7d1406e9fc01819e61 /binutils/addr2line.c | |
parent | 188bc85476e6ade99bd209ecf430601d56278e64 (diff) | |
download | gdb-dfbc689c699b3a15f11e8eb09cb05629f60b36b3.zip gdb-dfbc689c699b3a15f11e8eb09cb05629f60b36b3.tar.gz gdb-dfbc689c699b3a15f11e8eb09cb05629f60b36b3.tar.bz2 |
Sanity check loc_offsets index
Fixes a segfault found by the fuzzers.
* dwarf.c (fetch_indexed_value): Return -1 on error.
(read_and_display_attr_value): Don't display string when
fetch_indexed_value returns an error. Sanity check loc_offsets
index.
Diffstat (limited to 'binutils/addr2line.c')
0 files changed, 0 insertions, 0 deletions