mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-06 15:05:19 +00:00
AOT: fix crash in dumping call stack when the AOT file doesn't contain custom name section (#1508)
This commit is contained in:
parent
aba3707529
commit
ba3af0b196
|
@ -2920,6 +2920,9 @@ lookup_func_name(const char **func_names, uint32 *func_indexes,
|
|||
int64 low = 0, mid;
|
||||
int64 high = func_index_count - 1;
|
||||
|
||||
if (!func_names || !func_indexes || func_index_count == 0)
|
||||
return NULL;
|
||||
|
||||
while (low <= high) {
|
||||
mid = (low + high) / 2;
|
||||
if (func_index == func_indexes[mid]) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user