]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: turn on the "object-size" UBSan check on Fuzzit
authorEvgeny Vereshchagin <evvers@ya.ru>
Thu, 11 Jul 2019 13:32:05 +0000 (15:32 +0200)
committerEvgeny Vereshchagin <evvers@ya.ru>
Thu, 11 Jul 2019 16:37:22 +0000 (19:37 +0300)
Now that 2eb1c19881678851a7e is merged it should be safe.

travis-ci/managers/fuzzit.sh

index 313e6c6a0f962cba57c6bbf265990a01a4a622a5..255d1e2ba69e23d797b0232c1e6cbbb834a5eb89 100755 (executable)
@@ -16,11 +16,11 @@ 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 "pointer-overflow","object-size" and "float-cast-overflow":
+# because our fuzzers crash with "pointer-overflow" and "float-cast-overflow":
 # https://github.com/systemd/systemd/pull/12771#issuecomment-502139157
 # 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,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,return,returns-nonnull-attribute,shift,signed-integer-overflow,unreachable,vla-bound,vptr"
+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,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,return,returns-nonnull-attribute,shift,signed-integer-overflow,unreachable,vla-bound,vptr"
 tools/oss-fuzz.sh
 
 FUZZING_TYPE=${1:-sanity}