tor/src/test/fuzz/minimize.sh

15 lines
197 B
Bash
Raw Normal View History

#!/bin/sh
set -e
if [ ! -d "$1" ] ; then
echo "I need a directory"
exit 1
fi
2019-04-08 11:16:45 +03:00
which=$(basename "$1")
mkdir "$1.out"
afl-cmin -i "$1" -o "$1.out" -m none "./src/test/fuzz/fuzz-${which}"