Skip to content

Commit a91d953

Browse files
committed
institute sane limits for arbitrary-based fuzzers
1 parent 855c5c4 commit a91d953

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

fuzz/ast-fuzzers.options

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[libfuzzer]
2+
max_len = 65536

fuzz/oss-fuzz-build.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,8 @@ targets=(
1414
ast_fuzz_match_bytes
1515
)
1616
for target in "${targets[@]}"; do
17-
cp fuzz/target/x86_64-unknown-linux-gnu/release/$target $OUT/
17+
cp "fuzz/target/x86_64-unknown-linux-gnu/release/${target}" "${OUT}/"
18+
if [[ "$target" == ast_* ]]; then
19+
cp fuzz/ast-fuzzers.options "${OUT}/${target}.options"
20+
fi
1821
done

0 commit comments

Comments
 (0)