ci(fuzz): Update fuzz_read seed corpus and fix a bug in update script

This commit is contained in:
Chris Hennick 2024-06-04 17:22:02 -07:00
parent a7b89a7674
commit c0773d5564
No known key found for this signature in database
GPG key ID: DA47AABA4961C509
42 changed files with 1 additions and 2 deletions

View file

@ -7,8 +7,7 @@ while true; do
mkdir "fuzz/corpus/fuzz_$1_iter_${j}" mkdir "fuzz/corpus/fuzz_$1_iter_${j}"
cargo fuzz cmin --all-features "fuzz_$1" "fuzz/corpus/fuzz_$1_iter_${i}" -- \ cargo fuzz cmin --all-features "fuzz_$1" "fuzz/corpus/fuzz_$1_iter_${i}" -- \
-dict=fuzz/fuzz.dict -max_len="$2" "fuzz/corpus/fuzz_$1_iter_${j}" -dict=fuzz/fuzz.dict -max_len="$2" "fuzz/corpus/fuzz_$1_iter_${j}"
diff "fuzz/corpus/fuzz_$1_iter_${i}.bak" "fuzz/corpus/fuzz_$1_iter_${j}" if diff "fuzz/corpus/fuzz_$1_iter_${i}.bak" "fuzz/corpus/fuzz_$1_iter_${j}"; then
if $?; then
# Last iteration made no difference, so we're done # Last iteration made no difference, so we're done
rm -r "fuzz/corpus/fuzz_$1" rm -r "fuzz/corpus/fuzz_$1"
mv "fuzz/corpus/fuzz_$1_iter_${j}" "fuzz/corpus/fuzz_$1" mv "fuzz/corpus/fuzz_$1_iter_${j}" "fuzz/corpus/fuzz_$1"