mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-12 15:38:09 +00:00
Show number of generated zignatures in za{e,a,m}F
This commit is contained in:
parent
7205fbd665
commit
6833124b80
@ -179,6 +179,7 @@ exit_case_fcn:
|
||||
RListIter *iter = NULL;
|
||||
int minzlen = r_config_get_i (core->config, "zign.min");
|
||||
int maxzlen = r_config_get_i (core->config, "zign.max");
|
||||
int count = 0;
|
||||
|
||||
r_cons_break_push (NULL, NULL);
|
||||
r_list_foreach (core->anal->fcns, iter, fcni) {
|
||||
@ -187,9 +188,12 @@ exit_case_fcn:
|
||||
}
|
||||
if (!addFcnBytes (core, fcni, NULL, type, minzlen, maxzlen)) {
|
||||
eprintf ("error: could not add zignature for fcn %s\n", fcni->name);
|
||||
continue;
|
||||
}
|
||||
count++;
|
||||
}
|
||||
r_cons_break_pop ();
|
||||
eprintf ("generated zignatures: %d\n", count);
|
||||
}
|
||||
break;
|
||||
case '?':
|
||||
@ -366,6 +370,7 @@ exit_case_fcn:
|
||||
{
|
||||
RAnalFunction *fcni = NULL;
|
||||
RListIter *iter = NULL;
|
||||
int count = 0;
|
||||
|
||||
r_cons_break_push (NULL, NULL);
|
||||
r_list_foreach (core->anal->fcns, iter, fcni) {
|
||||
@ -374,9 +379,12 @@ exit_case_fcn:
|
||||
}
|
||||
if (!addFcnMetrics (core, fcni, NULL)) {
|
||||
eprintf ("error: could not add zignature for fcn %s\n", fcni->name);
|
||||
continue;
|
||||
}
|
||||
count++;
|
||||
}
|
||||
r_cons_break_pop ();
|
||||
eprintf ("generated zignatures: %d\n", count);
|
||||
}
|
||||
break;
|
||||
case '?':
|
||||
|
Loading…
Reference in New Issue
Block a user