mirror of
https://github.com/janet-lang/janet
synced 2025-10-07 12:02:28 +00:00
Add afl fuzzing helpers.
This commit is contained in:
13
tools/afl/aggregate_cases.sh
Normal file
13
tools/afl/aggregate_cases.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
set -eux
|
||||
|
||||
n=0
|
||||
for tc in $(echo ./fuzz_out/$1/*/hangs/* ./fuzz_out/$1/*/crashes/*)
|
||||
do
|
||||
if ! test -e $tc
|
||||
then
|
||||
continue
|
||||
fi
|
||||
mkdir -p ./fuzz_out/$1_aggregated/
|
||||
cp "$tc" $(printf "./fuzz_out/$1_aggregated/$1-%04d.test" $n)
|
||||
n=$((n + 1))
|
||||
done
|
Reference in New Issue
Block a user