Fix bug in function_children_parse() (#4485)

This commit is contained in:
pelijah 2024-05-11 15:37:25 +03:00 committed by GitHub
parent d321ece6fa
commit 0979c24046
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1501,8 +1501,8 @@ static bool function_children_parse(
ctx->analysis->typedb, v.prefer_name, rz_type_clone(v.type));
rz_type_callable_arg_add(callable, arg);
}
rz_vector_push(&fn->variables, &v);
ht_up_insert(ctx->analysis->debug_info->variable_by_offset, v.offset, &v);
RzAnalysisDwarfVariable *ptr = rz_vector_push(&fn->variables, &v);
ht_up_insert(ctx->analysis->debug_info->variable_by_offset, v.offset, ptr);
continue;
loop_end:
variable_fini(&v);