Skip to content

Commit

Permalink
Merge pull request #509 from AteChroma0j/fix-dry-run
Browse files Browse the repository at this point in the history
Fix dry run
  • Loading branch information
robertswiecki committed Jan 5, 2024
2 parents 10802df + c81048e commit 348a472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fuzz.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ static bool fuzz_fetchInput(run_t* run) {
fuzzState_t st = fuzz_getState(run->global);
if (st == _HF_STATE_DYNAMIC_DRY_RUN) {
run->mutationsPerRun = 0U;
if (input_prepareStaticFile(run, /* rewind= */ false, true)) {
if (input_prepareStaticFile(run, /* rewind= */ false, /* mangle= */ false)) {
return true;
}
fuzz_setDynamicMainState(run);
Expand Down
2 changes: 1 addition & 1 deletion input.c
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ const uint8_t* input_getRandomInputAsBuf(run_t* run, size_t* len) {
}

static bool input_shouldReadNewFile(run_t* run) {
if (fuzz_getState(run->global) != _HF_STATE_DYNAMIC_DRY_RUN) {
if (fuzz_getState(run->global) == _HF_STATE_DYNAMIC_DRY_RUN) {
input_setSize(run, run->global->mutate.maxInputSz);
return true;
}
Expand Down

0 comments on commit 348a472

Please sign in to comment.