Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
tokatoka committed Aug 28, 2024
1 parent 5a717af commit b8eecbe
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions fuzzers/afl_empty_seeds/fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def check_skip_det_compatible(additional_flags):
return False
return True


def prepare_empty_corpus(input_corpus):
if os.path.exists(input_corpus):
shutil.rmtree(input_corpus)
Expand Down
1 change: 1 addition & 0 deletions fuzzers/aflplusplus_empty_seeds/fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ def build(*args): # pylint: disable=too-many-branches,too-many-statements
shutil.copy('/afl/afl-frida-trace.so', build_directory)
shutil.copy('/get_frida_entry.sh', build_directory)


def prepare_empty_corpus(input_corpus):
if os.path.exists(input_corpus):
shutil.rmtree(input_corpus)
Expand Down
1 change: 1 addition & 0 deletions fuzzers/honggfuzz_empty_seeds/fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def prepare_empty_corpus(input_corpus):
with open(os.path.join(input_corpus, 'a'), 'wb') as f:
f.write(b'a')


def fuzz(input_corpus, output_corpus, target_binary):
"""Run fuzzer."""

Expand Down
1 change: 1 addition & 0 deletions fuzzers/libafl_empty_seeds/fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def prepare_fuzz_environment(input_corpus):
# Create at least one non-empty seed to start.
utils.create_seed_file_for_empty_corpus(input_corpus)


def prepare_empty_corpus(input_corpus):
if os.path.exists(input_corpus):
shutil.rmtree(input_corpus)
Expand Down
1 change: 1 addition & 0 deletions fuzzers/libfuzzer_empty_seeds/fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def fuzz(input_corpus, output_corpus, target_binary):
run_fuzzer."""
run_fuzzer(input_corpus, output_corpus, target_binary)


def prepare_empty_corpus(input_corpus):
if os.path.exists(input_corpus):
shutil.rmtree(input_corpus)
Expand Down

0 comments on commit b8eecbe

Please sign in to comment.