add sanity check to disallow --show and --outfile-autohex-disable

This commit is contained in:
philsmd 2016-08-18 13:48:59 +02:00
parent d7f078cb45
commit ed8315ba21
No known key found for this signature in database
GPG Key ID: 4F25D016D9D6A8AF
2 changed files with 11 additions and 0 deletions

View File

@ -24,6 +24,7 @@
- Add support for @ rule (RULE_OP_MANGLE_PURGECHAR) to use on GPU
- Add support for --outfile (short -o) to be used together with --stdout
- Skip periodic status output whenever --stdout is used together with stdin mode, but no outfile was specified
- Show error message if --show is used together with --outfile-autohex-disable (this is currently not supported)
##
## Bugs

View File

@ -7226,6 +7226,16 @@ int main (int argc, char **argv)
}
}
if (show == 1)
{
if (outfile_autohex == 0)
{
log_error ("ERROR: Mixing outfile-autohex-disable parameter not allowed with show parameter");
return -1;
}
}
uint attack_kern = ATTACK_KERN_NONE;
switch (attack_mode)