diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2021-12-28 18:10:18 +0100 |
---|---|---|
committer | Evgeny Vereshchagin <evvers@ya.ru> | 2021-12-29 11:39:06 +0100 |
commit | c84059f16ebb91ff92c6ba76d1225b5156b00e6c (patch) | |
tree | 4f724c32b3c1b43849c197d6a812439e4d9224c6 /tools | |
parent | tests: add fuzz-bcd (diff) | |
download | systemd-c84059f16ebb91ff92c6ba76d1225b5156b00e6c.tar.xz systemd-c84059f16ebb91ff92c6ba76d1225b5156b00e6c.zip |
oss-fuzz: turn on the alignment check
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/oss-fuzz.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/oss-fuzz.sh b/tools/oss-fuzz.sh index 620015658e..a0c936f612 100755 --- a/tools/oss-fuzz.sh +++ b/tools/oss-fuzz.sh @@ -50,7 +50,8 @@ else export PYTHONPATH="$ORIG_PYTHONPATH:/usr/lib/python3/dist-packages/" if [[ "$SANITIZER" == undefined ]]; then - UBSAN_FLAGS="-fsanitize=pointer-overflow -fno-sanitize-recover=pointer-overflow" + additional_ubsan_checks=pointer-overflow,alignment + UBSAN_FLAGS="-fsanitize=$additional_ubsan_checks -fno-sanitize-recover=$additional_ubsan_checks" CFLAGS="$CFLAGS $UBSAN_FLAGS" CXXFLAGS="$CXXFLAGS $UBSAN_FLAGS" fi |