]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fuzzit: switch to -fundefined
authorEvgeny Vereshchagin <evvers@ya.ru>
Tue, 26 May 2020 12:23:08 +0000 (14:23 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 27 May 2020 06:38:37 +0000 (08:38 +0200)
Now that https://github.com/systemd/systemd/issues/15907 is gone,
we can simply use "undefined" instead of listing all the possible checks
explicitly.

travis-ci/managers/fuzzit.sh

index ca7fa6aab0666f1d0e00834c3a788dd6c32fdffb..1d95137f8d0741945cbf6833ca56c007ce3a9679 100755 (executable)
@@ -21,11 +21,8 @@ pip3 install ninja meson
 cd $REPO_ROOT
 export PATH="$HOME/.local/bin/:$PATH"
 
-# We use a subset of https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#available-checks instead of "undefined"
-# because our fuzzers crash with "float-cast-overflow":
-# https://github.com/systemd/systemd/pull/12812#issuecomment-502780455
 # TODO: figure out what to do about unsigned-integer-overflow: https://github.com/google/oss-fuzz/issues/910
-export SANITIZER="address -fsanitize=alignment,array-bounds,bool,bounds,builtin,enum,float-divide-by-zero,function,integer-divide-by-zero,nonnull-attribute,null,object-size,pointer-overflow,return,returns-nonnull-attribute,shift,signed-integer-overflow,unreachable,unsigned-integer-overflow,vla-bound,vptr -fno-sanitize-recover=alignment,array-bounds,bool,bounds,builtin,enum,float-divide-by-zero,function,integer-divide-by-zero,nonnull-attribute,null,object-size,pointer-overflow,return,returns-nonnull-attribute,shift,signed-integer-overflow,unreachable,vla-bound,vptr"
+export SANITIZER="address -fsanitize=undefined,unsigned-integer-overflow"
 tools/oss-fuzz.sh
 
 FUZZING_TYPE=${1:-regression}