Skip to content

Commit

Permalink
[Nyx] AFL++ -F is only valid after -M
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwartzentruber committed Jan 23, 2024
1 parent 034791d commit eeb20af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/guided_fuzzing_daemon/nyx.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ def nyx_main(
cmd = ["-M", "0"]
if opts.nyx_async_corpus:
cmd.extend(("-F", str(opts.corpus_in)))
if opts.nyx_add_corpus:
for additional_corpus in opts.nyx_add_corpus:
cmd.extend(("-F", str(additional_corpus)))
if opts.nyx_add_corpus:
for additional_corpus in opts.nyx_add_corpus:
cmd.extend(("-F", str(additional_corpus)))

# environment settings that apply to this instance
this_env = envs[idx].copy()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_nyx.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,4 +662,4 @@ def test_nyx_12(mocker, nyx, tmp_path):
assert len(popen_calls) == 2
main, sec = popen_calls
assert set(_get_path_args("-F", main.args[0])) == {corpus_add}
assert set(_get_path_args("-F", sec.args[0])) == {corpus_add}
assert set(_get_path_args("-F", sec.args[0])) == set()

0 comments on commit eeb20af

Please sign in to comment.