From e0b1a9b67b3430402f9fdccc4d0cc757ac085d2b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 24 Apr 2025 22:08:53 +0200 Subject: Add simplified fuzzer tool. Thanks to Mischa for writing the original RTT fuzzer! --- tools/fuzz.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 tools/fuzz.sh (limited to 'tools/fuzz.sh') 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 -- cgit v1.2.3