summaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-04-24 11:19:15 +0930
committerAlan Modra <amodra@gmail.com>2023-04-24 20:59:38 +0930
commit2043ddb2185096eadc111865f31a70d1cffd6f4c (patch)
treea3a94741037461f71651abb7d1a3a2f6f559228f /opcodes
parentc1eb3cd205921fb7af668f2032ab2c7142c4f24c (diff)
downloadbinutils-gdb-2043ddb2185096eadc111865f31a70d1cffd6f4c.tar.gz
asan: segfault in coff_mangle_symbols
The testcase managed to trigger creation of a wild pointer in coff_slurp_symbol_table. Stop that happening, and fix an unrelated problem I happened to see in bfd_coff_get_syment. * coff-bfd.c (bfd_coff_get_syment): Clear fix_value after converting n_value from a pointer to an index. * coffcode.h (coff_slurp_symbol_table <C_BSTAT>): Sanity check symbol value before converting to a pointer.
Diffstat (limited to 'opcodes')
0 files changed, 0 insertions, 0 deletions