Skip to content
This repository was archived by the owner on Apr 30, 2021. It is now read-only.

Commit 26d1e0e

Browse files
committed
Fix for corpus crashing if no mutator_filters supplied.
The mutator filters were being treated as a string, even when they were using the request for the defaults.
1 parent ecebfff commit 26d1e0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎pythonfuzz/corpus.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def __init__(self, dirs=None, max_input_size=4096, mutators_filter=None, dict_pa
407407
self._save_corpus = dirs and os.path.isdir(dirs[0])
408408

409409
# Work out what we'll filter
410-
filters = mutators_filter.split(' ')
410+
filters = mutators_filter.split(' ') if mutators_filter else []
411411
negative_filters = [f[1:] for f in filters if f and f[0] == '!']
412412
required_filters = [f for f in filters if f and f[0] != '!']
413413

0 commit comments

Comments
 (0)