Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AFL capability added to common.sh, corresponding changes to build.sh for LCMS and re2 #14

Merged
merged 8 commits into from
Jul 13, 2017
Prev Previous commit
Next Next commit
FUZZER is now FUZZING_ENGINE
  • Loading branch information
David Noursi committed Jul 13, 2017
commit b0b10434bcf0646a5e8b2ccd4ff30858ba8d1abb
4 changes: 2 additions & 2 deletions common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
# Don't allow to call these scripts from their directories.
[ -e $(basename $0) ] && echo "PLEASE USE THIS SCRIPT FROM ANOTHER DIR" && exit 1

# Ensure that argument, if present, is either "libfuzzer" or "afl"
# Ensure that fuzzing engine, if defined, is either "libfuzzer" or "afl"
FUZZING_ENGINE=${FUZZING_ENGINE:-"libfuzzer"}
[[ ! -z $FUZZING_ENGINE ]] && [[ $FUZZING_ENGINE != "libfuzzer" ]] && [[ $FUZZING_ENGINE != "afl" ]] && echo "USAGE: If present, argument \$1 should be either 'afl' or 'libfuzzer' but it is $FUZZING_ENGINE" && exit 1
[[ $FUZZING_ENGINE != "libfuzzer" ]] && [[ $FUZZING_ENGINE != "afl" ]] && echo "USAGE: If defined, $FUZZING_ENGINE should be either 'afl' or 'libfuzzer' but it is $FUZZING_ENGINE" && exit 1
echo "Building with $FUZZING_ENGINE"

SCRIPT_DIR=$(dirname $0)
Expand Down