add fsanitize=unsigned-integer-overflow to libcxx

This commit is contained in:
Kostya Serebryany 2017-10-23 18:56:37 -07:00 committed by GitHub
parent ea348f8d95
commit 71600238b0
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,10 @@
#
################################################################################
if [[ $SANITIZER = *undefined* ]]; then
CXXFLAGS="$CXXFLAGS -fsanitize=unsigned-integer-overflow -fsanitize-trap=unsigned-integer-overflow"
fi
for f in $(grep -v "#" libcxx/fuzzing/RoutineNames.txt); do
cat > ${f}_fuzzer.cc <<EOF
#include "fuzzing/fuzzing.h"