Skip to content

Commit

Permalink
Fix bug in function_children_parse() (#4485)
Browse files Browse the repository at this point in the history
  • Loading branch information
pelijah committed May 11, 2024
1 parent d321ece commit 0979c24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions librz/arch/dwarf_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0979c24

Please sign in to comment.