Skip to content

Commit

Permalink
Fix wrong variable name when using ESP as base register ##disasm
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Jan 19, 2021
1 parent fb45d1d commit b4dc65f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/core/disasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,7 @@ static ut32 tmp_get_realsize (RAnalFunction *f) {
}

static void ds_show_functions_argvar(RDisasmState *ds, RAnalFunction *fcn, RAnalVar *var, const char *base, bool is_var, char sign) {
int delta = var->kind == 'b' ? R_ABS (var->delta + fcn->bp_off) : R_ABS (var->delta);
int delta = var->kind == 'b' ? R_ABS (var->delta + fcn->bp_off) : R_ABS (var->delta) - 8;
const char *pfx = is_var ? "var" : "arg";
char *constr = r_anal_var_get_constraints_readable (var);
r_cons_printf ("%s%s %s%s%s%s %s%s%s%s@ %s%c0x%x", COLOR_ARG (ds, color_func_var), pfx,
Expand Down

0 comments on commit b4dc65f

Please sign in to comment.