mirror of https://github.com/google/oss-fuzz.git
[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:
parent
43f8f7dfa5
commit
dec4d4272f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue