Merge branch 'master' into fix/soft-links-should-remain-the-same
This commit is contained in:
commit
bde1bb9ef1
8279 changed files with 773 additions and 623 deletions
|
@ -2,19 +2,59 @@
|
|||
set -euxo pipefail
|
||||
ncpus=$(nproc || getconf NPROCESSORS_ONLN)
|
||||
ncpus=$(( ncpus / ( 1 + $(cat /sys/devices/system/cpu/smt/active))))
|
||||
RESTARTS=10
|
||||
mv "fuzz/corpus/fuzz_$1" "fuzz/corpus/fuzz_$1_pre_fresh_blood" || true
|
||||
for i in $(seq 1 $RESTARTS); do
|
||||
echo "RESTART ${i}"
|
||||
mkdir "fuzz/corpus/fuzz_$1"
|
||||
NORMAL_RESTARTS=5
|
||||
rm -rf "fuzz/corpus/fuzz_$1_pre_fresh_blood" || true
|
||||
mkdir "fuzz/corpus/fuzz_$1_pre_fresh_blood"
|
||||
find "fuzz/corpus/fuzz_$1" -type f -exec mv '{}' "fuzz/corpus/fuzz_$1_pre_fresh_blood" ';' || true
|
||||
for i in $(seq 1 $NORMAL_RESTARTS); do
|
||||
find "fuzz/corpus/fuzz_$1_restart_${i}" -type f -exec mv '{}' "fuzz/corpus/fuzz_$1_pre_fresh_blood" ';' || true
|
||||
rm -rf "fuzz/corpus/fuzz_$1_restart_${i}" || true
|
||||
echo "$(date): RESTART ${i}"
|
||||
mkdir "fuzz/corpus/fuzz_$1" || true
|
||||
cargo fuzz run --all-features "fuzz_$1" "fuzz/corpus/fuzz_$1" -- \
|
||||
-dict=fuzz/fuzz.dict -max_len="$2" -fork="$ncpus" \
|
||||
-max_total_time=5100 -runs=100000000
|
||||
mv "fuzz/corpus/fuzz_$1" "fuzz/corpus/fuzz_$1_restart_${i}"
|
||||
mkdir "fuzz/corpus/fuzz_$1"
|
||||
done
|
||||
|
||||
find "fuzz/corpus/fuzz_$1_restart_dictionaryless" -type f -exec mv '{}' "fuzz/corpus/fuzz_$1_pre_fresh_blood" ';' || true
|
||||
rm -rf "fuzz/corpus/fuzz_$1_restart_dictionaryless" || true
|
||||
echo "$(date): DICTIONARY-LESS RESTART"
|
||||
cargo fuzz run --all-features "fuzz_$1" "fuzz/corpus/fuzz_$1" -- \
|
||||
-max_len="$2" -fork="$ncpus" -max_total_time=5100 -runs=100000000
|
||||
mv "fuzz/corpus/fuzz_$1" "fuzz/corpus/fuzz_$1_restart_dictionaryless"
|
||||
mkdir "fuzz/corpus/fuzz_$1"
|
||||
for i in $(seq 1 $RESTARTS); do
|
||||
mv "fuzz/corpus/fuzz_$1_restart_${i}"/* "fuzz/corpus/fuzz_$1"
|
||||
rmdir "fuzz/corpus/fuzz_$1_restart_${i}"
|
||||
|
||||
find "fuzz/corpus/fuzz_$1_restart_dictionaryless_012byte" -type f -exec mv '{}' "fuzz/corpus/fuzz_$1_pre_fresh_blood" ';' || true
|
||||
rm -rf "fuzz/corpus/fuzz_$1_restart_dictionaryless_012byte" || true
|
||||
echo "$(date): DICTIONARY-LESS RESTART WITH 0-2 BYTE CORPUS"
|
||||
tar -xvzf "fuzz/012byte.tar.gz" -C "fuzz/corpus/fuzz_$1"
|
||||
cargo fuzz run --all-features "fuzz_$1" "fuzz/corpus/fuzz_$1" -- \
|
||||
-max_len="$2" -fork="$ncpus" -max_total_time=5100 -runs=100000000
|
||||
mv "fuzz/corpus/fuzz_$1" "fuzz/corpus/fuzz_$1_restart_dictionaryless_012byte"
|
||||
mkdir "fuzz/corpus/fuzz_$1"
|
||||
|
||||
find "fuzz/corpus/fuzz_$1_restart_012byte" -type f -exec mv '{}' "fuzz/corpus/fuzz_$1_pre_fresh_blood" ';' || true
|
||||
rm -rf "fuzz/corpus/fuzz_$1_restart_012byte" || true
|
||||
echo "$(date): RESTART WITH DICTIONARY AND 0-2 BYTE CORPUS"
|
||||
tar -xvzf "fuzz/012byte.tar.gz" -C "fuzz/corpus/fuzz_$1"
|
||||
cargo fuzz run --all-features "fuzz_$1" "fuzz/corpus/fuzz_$1" -- \
|
||||
-dict=fuzz/fuzz.dict -max_len="$2" -fork="$ncpus" -max_total_time=5100 -runs=100000000
|
||||
|
||||
echo "$(date): MERGING CORPORA"
|
||||
for i in $(seq 1 $NORMAL_RESTARTS); do
|
||||
find "fuzz/corpus/fuzz_$1_restart_${i}" -type f -exec mv '{}' "fuzz/corpus/fuzz_$1" ';'
|
||||
rm -rf "fuzz/corpus/fuzz_$1_restart_${i}"
|
||||
done
|
||||
./fuzz-until-converged.sh $1 $2
|
||||
SPECIAL_RESTARTS=("dictionaryless_012byte" "dictionaryless")
|
||||
for i in "${SPECIAL_RESTARTS[@]}"; do
|
||||
find "fuzz/corpus/fuzz_$1_restart_${i}" -type f -exec mv '{}' "fuzz/corpus/fuzz_$1" ';'
|
||||
rm -rf "fuzz/corpus/fuzz_$1_restart_${i}"
|
||||
done
|
||||
echo "$(date): RUNNING WITH MERGED CORPUS"
|
||||
cargo fuzz run --all-features "fuzz_$1" "fuzz/corpus/fuzz_$1" -- \
|
||||
-dict=fuzz/fuzz.dict -max_len="$2" -fork="$ncpus" \
|
||||
-max_total_time=1800 -runs=25000000 -rss_limit_mb=8192 -timeout=30
|
||||
./recursive-fuzz-cmin.sh "$1" "$2"
|
||||
echo "$(date): DONE BUILDING FUZZ CORPUS AT SIZE $2"
|
16
build-fuzz-corpus-multiple-sizes.sh
Executable file
16
build-fuzz-corpus-multiple-sizes.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
set -euxo pipefail
|
||||
mkdir "fuzz/corpus/fuzz_$1_recombination_sources" || true
|
||||
|
||||
# Ensure the 0-byte, 1-byte and 2-byte strings won't gain duplicates during recombination
|
||||
find "fuzz/corpus/fuzz_$1_recombination_sources" -type f -size -3c -delete
|
||||
|
||||
for size in "${@:2}"; do
|
||||
echo "$(date): STARTING ON SIZE $size"
|
||||
rm -rf "fuzz/corpus/fuzz_$1_pre_fresh_blood" || true
|
||||
find "fuzz/corpus/fuzz_$1" -type f -exec mv '{}' "fuzz/corpus/fuzz_$1_recombination_sources" ';' || true
|
||||
./build-fuzz-corpus-multiple-restarts.sh "$1" "$size"
|
||||
find "fuzz/corpus/fuzz_$1_recombination_sources" -type f -size "-$((size + 1))c" -exec mv '{}' "fuzz/corpus/fuzz_$1" ';'
|
||||
./fuzz-until-converged.sh "$1" "$size"
|
||||
done
|
||||
echo "$(date): FINISHED"
|
|
@ -9,7 +9,7 @@ while [[ $iters_without_improvement -lt $MAX_ITERS_WITHOUT_IMPROVEMENT ]]; do
|
|||
cp -r "fuzz/corpus/fuzz_$1" "fuzz/corpus/fuzz_$1_old"
|
||||
cargo fuzz run --all-features "fuzz_$1" "fuzz/corpus/fuzz_$1" -- \
|
||||
-dict=fuzz/fuzz.dict -max_len="$2" -fork="$ncpus" \
|
||||
-max_total_time=1800 -runs=20000000 -rss_limit_mb=8192 -timeout=30
|
||||
-max_total_time=1800 -runs=25000000 -rss_limit_mb=8192 -timeout=30
|
||||
./recursive-fuzz-cmin.sh "$1" "$2"
|
||||
if diff "fuzz/corpus/fuzz_$1" "fuzz/corpus/fuzz_$1_old"; then
|
||||
iters_without_improvement=$(( iters_without_improvement + 1 ))
|
||||
|
|
BIN
fuzz/012byte.tar.gz
Normal file
BIN
fuzz/012byte.tar.gz
Normal file
Binary file not shown.
|
@ -1,2 +0,0 @@
|
|||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><02><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>PK./
|
||||
,
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
e†Úÿucœ/.ˆuDDD!DDDDDDDD
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/0036878ba15bca295c02066c2f2adb2ca543b5ab
Normal file
BIN
fuzz/corpus/fuzz_write/0036878ba15bca295c02066c2f2adb2ca543b5ab
Normal file
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/003791b1972af57e92f8abd813622e1052850b16
Normal file
BIN
fuzz/corpus/fuzz_write/003791b1972af57e92f8abd813622e1052850b16
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
ÉßõëûÿU K§Po.;/= -¹Ý
|
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/005ce0b35007051f71bdc9230186b77502e4ef21
Normal file
BIN
fuzz/corpus/fuzz_write/005ce0b35007051f71bdc9230186b77502e4ef21
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/008c778e77c6700922765ef7a50a97565e19e364
Normal file
BIN
fuzz/corpus/fuzz_write/008c778e77c6700922765ef7a50a97565e19e364
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/0096c585be40cdbf674954413260898b615cf038
Normal file
BIN
fuzz/corpus/fuzz_write/0096c585be40cdbf674954413260898b615cf038
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/00a75a73f5203e8e2dea792bc3a292d5a89763f6
Normal file
BIN
fuzz/corpus/fuzz_write/00a75a73f5203e8e2dea792bc3a292d5a89763f6
Normal file
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/00a7ae4ec8c1986744c1921a3ba290269efe0c79
Normal file
BIN
fuzz/corpus/fuzz_write/00a7ae4ec8c1986744c1921a3ba290269efe0c79
Normal file
Binary file not shown.
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/00bf6c7e8b23c44a169c131cb7394627c1e6dfe1
Normal file
BIN
fuzz/corpus/fuzz_write/00bf6c7e8b23c44a169c131cb7394627c1e6dfe1
Normal file
Binary file not shown.
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/00c198475d139b7da994851df1cdf620b135aaf9
Normal file
BIN
fuzz/corpus/fuzz_write/00c198475d139b7da994851df1cdf620b135aaf9
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/00d74cc750cee455fa2fe9d11742d682d090f103
Normal file
BIN
fuzz/corpus/fuzz_write/00d74cc750cee455fa2fe9d11742d682d090f103
Normal file
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/00dbcafa60478e4f8712430a74b59261a39744f7
Normal file
BIN
fuzz/corpus/fuzz_write/00dbcafa60478e4f8712430a74b59261a39744f7
Normal file
Binary file not shown.
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/00e076437867acf406e730123dd471be615cf5f5
Normal file
BIN
fuzz/corpus/fuzz_write/00e076437867acf406e730123dd471be615cf5f5
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/011296770e9b749779341670916214d8c7206da2
Normal file
BIN
fuzz/corpus/fuzz_write/011296770e9b749779341670916214d8c7206da2
Normal file
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/0114e54f5b8e355a0446ac7e120333bbe40ddf7c
Normal file
BIN
fuzz/corpus/fuzz_write/0114e54f5b8e355a0446ac7e120333bbe40ddf7c
Normal file
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/0124760516bf11aabf90d0d12d4db6605e5db265
Normal file
BIN
fuzz/corpus/fuzz_write/0124760516bf11aabf90d0d12d4db6605e5db265
Normal file
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/012b23151341358ba8ead551f2c7dc251d464e8b
Normal file
BIN
fuzz/corpus/fuzz_write/012b23151341358ba8ead551f2c7dc251d464e8b
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
;<3B><><EFBFBD>C//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD><EFBFBD>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/0172ea07a8d072acc9b4d81675506e074a788f45
Normal file
BIN
fuzz/corpus/fuzz_write/0172ea07a8d072acc9b4d81675506e074a788f45
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/0183517f0f120cecb18ac09b25d184fcfe8fd74d
Normal file
BIN
fuzz/corpus/fuzz_write/0183517f0f120cecb18ac09b25d184fcfe8fd74d
Normal file
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/0190b6afc88346cbb8e16cb45810274005a86463
Normal file
BIN
fuzz/corpus/fuzz_write/0190b6afc88346cbb8e16cb45810274005a86463
Normal file
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/01a394ceb58bd9fa1e3c570edf7fc9c224eee7b6
Normal file
BIN
fuzz/corpus/fuzz_write/01a394ceb58bd9fa1e3c570edf7fc9c224eee7b6
Normal file
Binary file not shown.
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/01aabd9431753440348fef258f29c7a0595e4887
Normal file
BIN
fuzz/corpus/fuzz_write/01aabd9431753440348fef258f29c7a0595e4887
Normal file
Binary file not shown.
|
@ -0,0 +1,5 @@
|
|||
/.//
|
||||
u
|
||||
/ccK#
|
||||
ccK#
|
||||
PP///cc
|
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/01c32febdbd52f3eec383ad0ff1cd9943ff831ca
Normal file
BIN
fuzz/corpus/fuzz_write/01c32febdbd52f3eec383ad0ff1cd9943ff831ca
Normal file
Binary file not shown.
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/01cdf091c243831e33c783106e681f4e3bcfcc2a
Normal file
BIN
fuzz/corpus/fuzz_write/01cdf091c243831e33c783106e681f4e3bcfcc2a
Normal file
Binary file not shown.
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/01d368a6ff11040b6f1b35ef47d85b4433305779
Normal file
BIN
fuzz/corpus/fuzz_write/01d368a6ff11040b6f1b35ef47d85b4433305779
Normal file
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/01d82a139d741829a6660e3e1d1911b380551399
Normal file
BIN
fuzz/corpus/fuzz_write/01d82a139d741829a6660e3e1d1911b380551399
Normal file
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>&<26><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>UT<55><54><EFBFBD>Є<EFBFBD><D084><EFBFBD><EFBFBD><EFBFBD>*/KKP
|
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/01ed11bbaa31f004e8d80ebd6aca1ce427e1148d
Normal file
BIN
fuzz/corpus/fuzz_write/01ed11bbaa31f004e8d80ebd6aca1ce427e1148d
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/0226a6d710c0236b298b61c076d46538658699c6
Normal file
BIN
fuzz/corpus/fuzz_write/0226a6d710c0236b298b61c076d46538658699c6
Normal file
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/0226dc10f2ba14ba955ddd0b6ee494fabf8382fc
Normal file
BIN
fuzz/corpus/fuzz_write/0226dc10f2ba14ba955ddd0b6ee494fabf8382fc
Normal file
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/022d4c1205fd77747ec3169a76a473038d63032e
Normal file
BIN
fuzz/corpus/fuzz_write/022d4c1205fd77747ec3169a76a473038d63032e
Normal file
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/02345fe119fd417ea8fa6061fcdd69e86c26e0d6
Normal file
BIN
fuzz/corpus/fuzz_write/02345fe119fd417ea8fa6061fcdd69e86c26e0d6
Normal file
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/025a360ee4a8d92a9514ca0e4262fbfe30fcb9ed
Normal file
BIN
fuzz/corpus/fuzz_write/025a360ee4a8d92a9514ca0e4262fbfe30fcb9ed
Normal file
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
?<3F>PL<06>[<5B>P<><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>PK<50><4B><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>P2<>222
|
BIN
fuzz/corpus/fuzz_write/026f023317af0c8f0b0af3f89e5b4b938abc81a8
Normal file
BIN
fuzz/corpus/fuzz_write/026f023317af0c8f0b0af3f89e5b4b938abc81a8
Normal file
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
/../#;<01>;<01>F<EFBFBD><46>UPK/TA.Y
|
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
<0B><><EFBFBD>I防
|
Binary file not shown.
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/02a9ec4669da616e173f15793ba7c28cb761eb55
Normal file
BIN
fuzz/corpus/fuzz_write/02a9ec4669da616e173f15793ba7c28cb761eb55
Normal file
Binary file not shown.
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/02bf000cfe5dc3c0c4fefd837fa6fc7e55df8044
Normal file
BIN
fuzz/corpus/fuzz_write/02bf000cfe5dc3c0c4fefd837fa6fc7e55df8044
Normal file
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Yqc<71><63>c<EFBFBD><63><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>c.//
|
Binary file not shown.
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/02cf6d6260c81737494becedd2e35261540688ce
Normal file
BIN
fuzz/corpus/fuzz_write/02cf6d6260c81737494becedd2e35261540688ce
Normal file
Binary file not shown.
BIN
fuzz/corpus/fuzz_write/02d0ebf12cc9702b258a346b2dfebd1197bac0ad
Normal file
BIN
fuzz/corpus/fuzz_write/02d0ebf12cc9702b258a346b2dfebd1197bac0ad
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue