Better description for a signatures

This commit is contained in:
Dennis Goodlett 2021-08-10 18:58:23 +00:00 committed by pancake
parent 8ef090c017
commit eaa235a1b1
3 changed files with 3 additions and 6 deletions

View File

@ -263,9 +263,6 @@ R_API bool r_sign_deserialize(RAnal *a, RSignItem *it, const char *k, const char
}
RSignType st = (RSignType)*word;
switch (st) {
case R_SIGN_ANAL:
eprintf ("Unsupported\n");
break;
case R_SIGN_NAME:
DBL_VAL_FAIL (it->realname, R_SIGN_NAME);
it->realname = strdup (token);
@ -375,7 +372,7 @@ R_API bool r_sign_deserialize(RAnal *a, RSignItem *it, const char *k, const char
}
break;
default:
eprintf ("Unsupported (%s)\n", word);
eprintf ("Unsupported (%c)\n", st);
break;
}
}

View File

@ -353,7 +353,7 @@ out_case_manual:
// TODO #7967 help refactor: move to detail
r_cons_printf ("Adding Zignatures (examples and documentation)\n\n"
"Zignature types:\n"
" a: bytes pattern (anal mask)\n"
" a: bytes pattern, r2 creates mask from analysis\n"
" b: bytes pattern\n"
" c: base64 comment\n"
" n: real function name\n"

View File

@ -19,7 +19,7 @@ typedef enum {
R_SIGN_BYTES = 'b', // bytes pattern
R_SIGN_BYTES_MASK = 'm', // bytes pattern
R_SIGN_BYTES_SIZE = 's', // bytes pattern
R_SIGN_ANAL = 'a', // bytes pattern (anal mask) // wtf ?
R_SIGN_ANAL = 'a', // bytes pattern, input only, creates mask from byte analysis
R_SIGN_COMMENT = 'c', // comment
R_SIGN_GRAPH = 'g', // graph metrics
R_SIGN_OFFSET = 'o', // addr