diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-04-28 22:09:29 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-04-29 01:16:25 +0200 |
commit | 48e39e44dbe267f8945e9d597e61fd8aa3dfb376 (patch) | |
tree | c75e854fadc20d827cd5b422c5ab0f1a45cdf1d2 /bin/rtt-fuzz | |
parent | 7a93787dfe5cdaba3eed98ed8edd19674186430b (diff) | |
download | server-48e39e44dbe267f8945e9d597e61fd8aa3dfb376.tar.gz |
Improved fuzzing.
Diffstat (limited to 'bin/rtt-fuzz')
-rwxr-xr-x | bin/rtt-fuzz | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/bin/rtt-fuzz b/bin/rtt-fuzz index d7f2aef..464ff34 100755 --- a/bin/rtt-fuzz +++ b/bin/rtt-fuzz @@ -1,6 +1,6 @@ #!/bin/bash -TITLE=$1 +export TITLE=$1 shift if [ ! -f ./public/$TITLE/rules.js ] @@ -9,8 +9,11 @@ then exit 1 fi -mkdir -p fuzzer/corpus-$TITLE +if [ -z $(npm ls -p jsfuzz) ] +then + echo Installing "jsfuzz" package. + npm install -s --no-save jsfuzz +fi -RULES=../public/$TITLE/rules.js \ - npx jazzer tools/fuzz.js --sync fuzzer/corpus-$TITLE "$@" -- -exact_artifact_path=/dev/null | \ - tee fuzzer/log-$TITLE.txt +mkdir -p fuzzer/corpus-$TITLE +npx jsfuzz tools/fuzz.js fuzzer/corpus-$TITLE --exact-artifact-path=/dev/null | tee fuzzer/log-$TITLE.txt |