diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-04-24 22:08:53 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-04-25 16:06:05 +0200 |
commit | e0b1a9b67b3430402f9fdccc4d0cc757ac085d2b (patch) | |
tree | 69d7796b0ba56b5deacaf1b247cda15ae0fe149f /tools/fuzz.sh | |
parent | b431c667423dc9f3717610170b65d6193a66f614 (diff) | |
download | server-e0b1a9b67b3430402f9fdccc4d0cc757ac085d2b.tar.gz |
Add simplified fuzzer tool.
Thanks to Mischa for writing the original RTT fuzzer!
Diffstat (limited to 'tools/fuzz.sh')
-rwxr-xr-x | tools/fuzz.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/fuzz.sh b/tools/fuzz.sh new file mode 100755 index 0000000..fd2391b --- /dev/null +++ b/tools/fuzz.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +TITLE=$1 +shift + +if [ ! -f ./public/$TITLE/rules.js ] +then + echo usage: bash tools/fuzz.sh title_id + exit 1 +fi + +mkdir -p fuzzer/corpus-$TITLE + +RULES=../public/$TITLE/rules.js \ + npx jazzer tools/rtt-fuzz.js --sync fuzzer/corpus-$TITLE "$@" -- -exact_artifact_path=/dev/null | \ + tee fuzzer/log-$TITLE.txt |