test(fuzz): Include every possible 0-byte, 1-byte and 2-byte string in first recombination
This commit is contained in:
parent
cb0d9e1310
commit
7cfde3539c
1 changed files with 10 additions and 0 deletions
|
@ -1,6 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
mkdir "fuzz/corpus/fuzz_$1_recombination_sources" || true
|
mkdir "fuzz/corpus/fuzz_$1_recombination_sources" || true
|
||||||
|
|
||||||
|
# Ensure all 0-byte, 1-byte and 2-byte strings are eligible for recombination
|
||||||
|
touch fuzz/corpus/fuzz_write_recombination_sources/empty
|
||||||
|
for i in $(seq 0 255); do
|
||||||
|
printf "%02X" "$i" | xargs -n 1 -I '{}' sh -c 'echo {} | xxd -r -p > fuzz/corpus/fuzz_write_recombination_sources/{}'
|
||||||
|
for j in $(seq 0 255); do
|
||||||
|
printf "%02X%02X" "$i" "$j" | xargs -n 1 -I '{}' sh -c 'echo {} | xxd -r -p > fuzz/corpus/fuzz_write_recombination_sources/{}'
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
for size in "${@:2}"; do
|
for size in "${@:2}"; do
|
||||||
echo "$(date): STARTING ON SIZE $size"
|
echo "$(date): STARTING ON SIZE $size"
|
||||||
rm -rf "fuzz/corpus/fuzz_$1_pre_fresh_blood" || true
|
rm -rf "fuzz/corpus/fuzz_$1_pre_fresh_blood" || true
|
||||||
|
|
Loading…
Add table
Reference in a new issue