[librawspeed] Undefined Sanitizer: enable unsigned-integer-overflow detection. (#1011)

As discussed in https://github.com/google/oss-fuzz/issues/682#issuecomment-347236010
This commit is contained in:
Roman Lebedev 2017-11-27 22:23:07 +03:00 committed by Max Moroz
parent 43f8f7dfa5
commit dec4d4272f
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,11 @@
set -e
if [[ $SANITIZER = *undefined* ]]; then
CFLAGS="$CFLAGS -fsanitize=unsigned-integer-overflow -fno-sanitize-recover=unsigned-integer-overflow"
CXXFLAGS="$CXXFLAGS -fsanitize=unsigned-integer-overflow -fno-sanitize-recover=unsigned-integer-overflow"
fi
cd "$WORK"
mkdir build
cd build