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
|
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"
|
cd "$WORK"
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
|
Loading…
Reference in New Issue