From 49f3b025fd909f199da17d664d19cc0faf5fc181 Mon Sep 17 00:00:00 2001 From: SekoiaTree Date: Thu, 15 May 2025 18:13:51 +0200 Subject: [PATCH] fix: fix ports for ease of use --- part1/run.w_corpus.sh | 4 +++- part1/run.w_o_corpus.sh | 4 +++- part3/improve1/run.improve1.sh | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/part1/run.w_corpus.sh b/part1/run.w_corpus.sh index 2152aee..8465b59 100755 --- a/part1/run.w_corpus.sh +++ b/part1/run.w_corpus.sh @@ -11,4 +11,6 @@ python3 infra/helper.py build_fuzzers --clean libpng mkdir -p build/out/corpus python3 infra/helper.py run_fuzzer libpng libpng_read_fuzzer --corpus-dir build/out/corpus python3 infra/helper.py build_fuzzers --sanitizer coverage libpng -python3 infra/helper.py coverage libpng --corpus-dir build/out/corpus --fuzz-target libpng_read_fuzzer --no-serve +# no-serve: to exit immediately +# port: in case port 8008 is already allocated, even with no-serve it fails otherwise... +python3 infra/helper.py coverage libpng --corpus-dir build/out/corpus --fuzz-target libpng_read_fuzzer --no-serve --port 9531 diff --git a/part1/run.w_o_corpus.sh b/part1/run.w_o_corpus.sh index 039ce7b..a522b1a 100755 --- a/part1/run.w_o_corpus.sh +++ b/part1/run.w_o_corpus.sh @@ -12,4 +12,6 @@ python3 infra/helper.py build_fuzzers --clean libpng mkdir -p build/out/corpus python3 infra/helper.py run_fuzzer libpng libpng_read_fuzzer --corpus-dir build/out/corpus python3 infra/helper.py build_fuzzers --sanitizer coverage libpng -python3 infra/helper.py coverage libpng --corpus-dir build/out/corpus --fuzz-target libpng_read_fuzzer --no-serve +# no-serve: to exit immediately +# port: in case port 8008 is already allocated, even with no-serve it fails otherwise... +python3 infra/helper.py coverage libpng --corpus-dir build/out/corpus --fuzz-target libpng_read_fuzzer --no-serve --port 9531 diff --git a/part3/improve1/run.improve1.sh b/part3/improve1/run.improve1.sh index 4894048..ad97173 100755 --- a/part3/improve1/run.improve1.sh +++ b/part3/improve1/run.improve1.sh @@ -11,4 +11,6 @@ python3 infra/helper.py build_fuzzers --clean libpng mkdir -p build/out/corpus python3 infra/helper.py run_fuzzer libpng libpng_read_fuzzer --corpus-dir build/out/corpus python3 infra/helper.py build_fuzzers --sanitizer coverage libpng -python3 infra/helper.py coverage libpng --corpus-dir build/out/corpus --fuzz-target libpng_read_fuzzer --no-serve +# no-serve: to exit immediately +# port: in case port 8008 is already allocated, even with no-serve it fails otherwise... +python3 infra/helper.py coverage libpng --corpus-dir build/out/corpus --fuzz-target libpng_read_fuzzer --no-serve --port 9531