mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
22 lines
323 B
Bash
Executable File
22 lines
323 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
fuzzer="$1"
|
|
|
|
if [ -z "$fuzzer" ]; then
|
|
echo usage: $0 fuzzer
|
|
exit 1
|
|
fi
|
|
|
|
cd fuzz
|
|
make $fuzzer
|
|
|
|
if [ ! -e corpus/${fuzzer}_ ]; then
|
|
mv corpus/$fuzzer corpus/${fuzzer}_
|
|
fi
|
|
|
|
mkdir -p corpus/$fuzzer
|
|
./$fuzzer -merge=1 -use_value_profile=1 corpus/$fuzzer corpus/${fuzzer}_
|
|
rm -rf corpus/${fuzzer}_
|