diff options
author | Alan Modra <amodra@gmail.com> | 2022-11-23 22:07:03 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-11-23 22:38:48 +1030 |
commit | d499fb89448c3f2e061813f12a1b63fbaa29422e (patch) | |
tree | 7c890950c7175781603eb8d96f26f444a7fa3ed1 /bfd/i386lynx.c | |
parent | 8181f0045df765a7f28db745f4a8bd3c5a1da82d (diff) | |
download | gdb-d499fb89448c3f2e061813f12a1b63fbaa29422e.zip gdb-d499fb89448c3f2e061813f12a1b63fbaa29422e.tar.gz gdb-d499fb89448c3f2e061813f12a1b63fbaa29422e.tar.bz2 |
asan: NULL deref in filter_symbols
If tdata->symbols is NULL, make tdata->symcount zero too. This makes
wasm_get_symtab_upper_bound return the proper result and stops
cascading errors.
* wasm-module.c (wasm_scan_name_function_section): Clear
tdata->symcount on error.
Diffstat (limited to 'bfd/i386lynx.c')
0 files changed, 0 insertions, 0 deletions