From a6ae527f99c84e90af3febbe65edf3073fb4bd48 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 2 Oct 2026 20:19:49 +0000 Subject: Fix possible file name collision in the fuzz script FossilOrigin-Name: fa9e0987ec17e2a44f3c6cec051c6a5b7633f5f4dad3abee89c391ae9a3140fe --- tools/fuzz | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/fuzz b/tools/fuzz index 892e950..cb75c67 100755 --- a/tools/fuzz +++ b/tools/fuzz @@ -14,8 +14,12 @@ make clean && make mkdir -p fuzz-in mkdir -p fuzz-out mkdir -p fuzz-in-min -cp ../../tests/scripts/good/*.aplwc fuzz-in -cp ../../tests/scripts/bad/*.aplwc fuzz-in +n=0 +for f in ../../tests/scripts/good/*.aplwc ../../tests/scripts/bad/*.aplwc +do + cp "$f" fuzz-in/$n + n=$((n+1)) +done afl-cmin -i fuzz-in -o fuzz-in-min -- ./aplwc @@ rm fuzz-in/* cd fuzz-in-min -- cgit v1.2.3