Skip to content

Commit

Permalink
do not save unexecuted repeat mutant
Browse files Browse the repository at this point in the history
  • Loading branch information
agroce committed Aug 23, 2024
1 parent 877d15d commit 1bb76c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions muttfuzz/fuzzutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ def fuzz_with_mutants(fuzzer_cmd, executable, budget, time_per_mutant, fraction_
visited_mutants=visited_mutants, unreach_cache=unreach_cache)
if stop_on_repeat and max(visited_mutants.values()) > 1:
print("FORCED TO REPEAT A MUTANT, STOPPING ANALYSIS")
if save_mutants is not None:
# Don't keep repeated mutants
subprocess.call("rm " + save_mutants + "/*_" + str(mutant_no) + ".*", shell=True)
break
else:
print(round(time.time() - start_fuzz, 2), "ELAPSED: APPLYING MUTANT #" + str(mutant_no))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='muttfuzz',
version='1.2.25',
version='1.2.26',
description='Fuzzing with mutants',
long_description_content_type="text/markdown",
long_description=open('README.md').read(),
Expand Down

0 comments on commit 1bb76c0

Please sign in to comment.