From 31a2324bfddb862fb2bf5c9a54078039bcedc326 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 27 Jun 2024 08:49:10 +1000 Subject: [PATCH] Fix fuzz script Currently the `fuzz.sh` script fails with "unbound variable" if called without any arguments, this has gone undetected since we added `set -euox pipefail` because in CI we always call it with an argument. Use chatGPT to fix the bug. Fix: #2924 --- fuzz/fuzz.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuzz/fuzz.sh b/fuzz/fuzz.sh index 2632e6bc3..22ced4de7 100755 --- a/fuzz/fuzz.sh +++ b/fuzz/fuzz.sh @@ -10,7 +10,7 @@ source "$REPO_DIR/fuzz/fuzz-util.sh" # Check that input files are correct Windows file names checkWindowsFiles -if [ "$1" == "" ]; then +if [ -z "${1:-}" ]; then targetFiles="$(listTargetFiles)" else targetFiles=fuzz_targets/"$1".rs