Skip to content

Commit

Permalink
Fix regressiong with aeim
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarofe committed Nov 10, 2016
1 parent ec15203 commit bb6daf8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libr/core/cmd_anal.c
Original file line number Diff line number Diff line change
Expand Up @@ -2245,7 +2245,7 @@ static void cmd_esil_mem(RCore *core, const char *input) {
ut64 addr = 0x100000;
ut32 size = 0xf0000;
char name[128];
RCoreFile *cf;
RCoreFile *cf, *cache;
RFlagItem *fi;
const char *sp;
char uri[32];
Expand Down Expand Up @@ -2303,10 +2303,12 @@ static void cmd_esil_mem(RCore *core, const char *input) {
return;
}
snprintf (uri, sizeof (uri), "malloc://%d", (int)size);
cache = core->file;
cf = r_core_file_open (core, uri, R_IO_RW, addr);
if (cf) {
r_flag_set (core->flags, name, addr, size);
}
r_core_file_set_by_file (core, cache);
r_flag_set (core->flags, "aeim.fd", cf->desc->fd, 1);
//r_core_cmdf (core, "f stack_fd=`on malloc://%d 0x%08"
// PFMT64x"`", stack_size, stack_addr);
Expand Down

0 comments on commit bb6daf8

Please sign in to comment.