cmdline: exclude -s and -P
@@ -526,6 +526,11 @@ bool cmdlineParse(int argc, char *argv[], honggfuzz_t * hfuzz)
return false;
}
+ if (hfuzz->fuzzStdin && hfuzz->persistent) {
+ LOG_E("Stdin fuzzing (-s) and persistent fuzzing (-P) cannot be specified at the same time");
+ return false;
+ }
+
if (hfuzz->threadsMax >= _HF_THREAD_MAX) {
LOG_E("Too many fuzzing threads specified %zu (>= _HF_THREAD_MAX (%u))", hfuzz->threadsMax,
_HF_THREAD_MAX);
