Skip to content

Commit

Permalink
Consider all functions in afl. and print error if no function is there
Browse files Browse the repository at this point in the history
  • Loading branch information
ret2libc committed Jan 27, 2021
1 parent 37712b4 commit a191b2a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions librz/core/canalysis.c
Original file line number Diff line number Diff line change
Expand Up @@ -3261,8 +3261,14 @@ RZ_API int rz_core_analysis_fcn_list(RzCore *core, const char *input, const char
return 0;
}
if (*rad == '.') {
RzAnalysisFunction *fcn = rz_analysis_get_function_at(core->analysis, core->offset);
__fcn_print_default(core, fcn, false);
RzList *fcns = rz_analysis_get_functions_in(core->analysis, core->offset);
if (!fcns || rz_list_empty (fcns)) {
eprintf("No functions at current address.\n");
rz_list_free (fcns);
return -1;
}
fcn_list_default(core, fcns, false);
rz_list_free(fcns);
return 0;
}

Expand Down

0 comments on commit a191b2a

Please sign in to comment.