aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-reproducers.sh
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2024-11-12 12:52:43 +0100
committerTaras Madan <tarasmadan@google.com>2024-11-15 14:26:54 +0000
commit5d4b17934e7ae3d6f332865fb94445490b82fc04 (patch)
tree21e4590abb5ff99c8da7eeb94cd29878b68061f8 /tools/syz-reproducers.sh
parenteeafb6452e6709a1bbe507ece86d922b23074593 (diff)
tools/syz-reproducers.sh: use new archive structure
Diffstat (limited to 'tools/syz-reproducers.sh')
-rwxr-xr-xtools/syz-reproducers.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/syz-reproducers.sh b/tools/syz-reproducers.sh
index e07e6f8b8..7199255ce 100755
--- a/tools/syz-reproducers.sh
+++ b/tools/syz-reproducers.sh
@@ -23,7 +23,7 @@ tar -xzf "$target_dir/upstream.tar.gz" -C "$target_dir" && rm "$target_dir/upstr
mkdir -p "$target_dir/bin"
# Compile the programs and count the successfully built ones.
-built_count=$(find "$target_dir/repros" -name "*.c" -print0 | \
+built_count=$(find "$target_dir/export/bugs" -name "*.c" -print0 | \
xargs -0 -P 128 -I {} sh -c '
filename=$(basename {} .c)
flags=""
@@ -38,7 +38,7 @@ built_count=$(find "$target_dir/repros" -name "*.c" -print0 | \
' | grep "1" | wc -l)
# Count the number of .c files (reproducers).
-reproducer_count=$(find "$target_dir/repros" -name "*.c" -print0 | xargs -0 -n1 echo | wc -l)
+reproducer_count=$(find "$target_dir/export/bugs" -name "*.c" -print0 | xargs -0 -n1 echo | wc -l)
echo "Downloaded $reproducer_count reproducers."
echo "Successfully built $built_count programs."