Skip to content

Commit 6db61f1

Browse files
committed
Missing file
1 parent 0ab2468 commit 6db61f1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

fuzz/travis-fuzz.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
set -e
3+
cargo install --force honggfuzz
4+
for TARGET in fuzz_targets/*; do
5+
FILENAME=$(basename $TARGET)
6+
FILE="${FILENAME%.*}"
7+
if [ -d hfuzz_input/$FILE ]; then
8+
HFUZZ_INPUT_ARGS="-f hfuzz_input/$FILE/input"
9+
fi
10+
HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz" HFUZZ_RUN_ARGS="--run_time 30 --exit_upon_crash -v $HFUZZ_INPUT_ARGS" cargo hfuzz run $FILE
11+
12+
if [ -f hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT ]; then
13+
cat hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT
14+
for CASE in hfuzz_workspace/$FILE/SIG*; do
15+
cat $CASE | xxd -p
16+
done
17+
exit 1
18+
fi
19+
done

0 commit comments

Comments
 (0)