Skip to content

Commit

Permalink
fuzz: institute sane limits for arbitrary-based fuzzers
Browse files Browse the repository at this point in the history
  • Loading branch information
addisoncrump authored and BurntSushi committed Oct 9, 2023
1 parent 1a50eaa commit 9e503cd
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions fuzz/ast-fuzzers.options
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[libfuzzer]
max_len = 65536
5 changes: 4 additions & 1 deletion fuzz/oss-fuzz-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@ targets=(
ast_fuzz_match_bytes
)
for target in "${targets[@]}"; do
cp fuzz/target/x86_64-unknown-linux-gnu/release/$target $OUT/
cp "fuzz/target/x86_64-unknown-linux-gnu/release/${target}" "${OUT}/"
if [[ "$target" == ast_* ]]; then
cp fuzz/ast-fuzzers.options "${OUT}/${target}.options"
fi
done
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 9e503cd

Please sign in to comment.