mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 11:08:06 +00:00
fix non instrumented mode, fix check_binary
This commit is contained in:
@ -435,6 +435,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
u8 *c;
|
||||
|
||||
if (afl->non_instrumented_mode) { FATAL("-M is not supported in non-instrumented mode "); }
|
||||
if (afl->sync_id) { FATAL("Multiple -S or -M options not supported"); }
|
||||
afl->sync_id = ck_strdup(optarg);
|
||||
afl->skip_deterministic = 0; // force determinsitic fuzzing
|
||||
@ -464,6 +465,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
case 'S': /* secondary sync id */
|
||||
|
||||
if (afl->non_instrumented_mode) { FATAL("-S is not supported in non-instrumented mode "); }
|
||||
if (afl->sync_id) { FATAL("Multiple -S or -M options not supported"); }
|
||||
afl->sync_id = ck_strdup(optarg);
|
||||
afl->is_secondary_node = 1;
|
||||
@ -620,6 +622,12 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
case 'n': /* dumb mode */
|
||||
|
||||
if (afl->is_main_node || afl->is_secondary_node) {
|
||||
|
||||
FATAL("Non instrumented mode is not supported with -M / -S");
|
||||
|
||||
}
|
||||
|
||||
if (afl->non_instrumented_mode) {
|
||||
|
||||
FATAL("Multiple -n options not supported");
|
||||
@ -1342,7 +1350,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
}
|
||||
|
||||
if (afl->non_instrumented_mode) check_binary(afl, argv[optind]);
|
||||
if (!afl->non_instrumented_mode) check_binary(afl, argv[optind]);
|
||||
|
||||
if (afl->shmem_testcase_mode) { setup_testcase_shmem(afl); }
|
||||
|
||||
|
Reference in New Issue
Block a user