Skip to content

Commit

Permalink
The sixref command shouldnt change current seek ##analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Jun 5, 2024
1 parent 8f3644d commit cd44c83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libr/core/p/core_sixref.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* radare - LGPL - Copyright 2021-2022 - Siguza, pancake, hot3eed */
/* radare - LGPL - Copyright 2021-2024 - Siguza, pancake, hot3eed */

// Context: https://raw.githubusercontent.com/Siguza/misc/master/xref.c

Expand Down Expand Up @@ -301,6 +301,7 @@ static int r_cmdsixref_call(void *user, const char *input) {
input = r_str_trim_head_ro (input + strlen ("sixref"));

RCore *core = (RCore *)user;
const ut64 oaddr = core->offset;
const char *arch = r_config_get (core->config, "asm.arch");
const int bits = r_config_get_i (core->config, "asm.bits");

Expand Down Expand Up @@ -365,6 +366,7 @@ static int r_cmdsixref_call(void *user, const char *input) {
}

done:
r_core_seek (core, oaddr, true);
return true;
}

Expand Down

0 comments on commit cd44c83

Please sign in to comment.