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:
Alan Modra
2021-12-17 14:54:54 +10:30
parent 9b54b56185
commit cfabce5ba1

View File

@ -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;
}