Skip to content

Commit

Permalink
fil
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Nov 24, 2024
1 parent 4077cbf commit 53e7b79
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libr/core/cconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,13 @@ static bool cb_anal_flagends(void *user, void *data) {
return true;
}

static bool cb_anal_icods(void *user, void *data) {
RCore *core = (RCore*) user;
RConfigNode *node = (RConfigNode*) data;
core->anal->opt.icods = node->i_value;
return true;
}

static bool cb_anal_jmpretpoline(void *user, void *data) {
RCore *core = (RCore*) user;
RConfigNode *node = (RConfigNode*) data;
Expand Down Expand Up @@ -3548,6 +3555,7 @@ R_API int r_core_config_init(RCore *core) {
NULL);
SETI ("anal.timeout", 0, "stop analyzing after a couple of seconds");
SETCB ("anal.flagends", "true", &cb_anal_flagends, "end function when a flag is found");
SETCB ("anal.icods", "true", &cb_anal_icods, "analyze indirect code references");
SETCB ("anal.jmp.retpoline", "true", &cb_anal_jmpretpoline, "analyze retpolines, may be slower if not needed");
SETCB ("anal.jmp.tailcall", "true", &cb_anal_jmptailcall, "consume a branch as a call if delta is a function");
SETICB ("anal.jmp.tailcall.delta", 0, &cb_anal_jmptailcall_delta, "consume a branch as a call if delta is big");
Expand Down

0 comments on commit 53e7b79

Please sign in to comment.