mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
asan: abort in wasm_scan_name_function_section
Macros like READ_LEB128 in wasm-module.c that alter control flow are evil. Maintainers will break your code if you have hidden ways to reach labels. * wasm-module.c (wasm_scan_name_function_section): Don't attempt to bfd_release NULL.
This commit is contained in:
@ -357,7 +357,8 @@ wasm_scan_name_function_section (bfd *abfd, sec_ptr asect)
|
||||
return true;
|
||||
|
||||
error_return:
|
||||
bfd_release (abfd, symbols);
|
||||
if (symbols)
|
||||
bfd_release (abfd, symbols);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user