Skip to content

Commit

Permalink
bp and sp both must be zero
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarofe committed Nov 10, 2016
1 parent bb6daf8 commit d4b9179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/core/anal_tp.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ static bool r_anal_emul_init(RCore *core, bool *state) {
r_config_set (core->config, "esil.nonull", "true");
const char *bp = r_reg_get_name (core->anal->reg, R_REG_NAME_BP);
const char *sp = r_reg_get_name (core->anal->reg, R_REG_NAME_SP);
if ((bp && !r_reg_getv (core->anal->reg, bp)) || (sp && !r_reg_getv (core->anal->reg, sp))) {
if ((bp && !r_reg_getv (core->anal->reg, bp)) && (sp && !r_reg_getv (core->anal->reg, sp))) {
eprintf ("Stack isn't initiatized.\n");
eprintf ("Try running aei and aeim commands before aftm for default stack initialization\n");
return false;
Expand Down

0 comments on commit d4b9179

Please sign in to comment.