summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2021-12-28 18:10:18 +0100
committerEvgeny Vereshchagin <evvers@ya.ru>2021-12-29 11:39:06 +0100
commitc84059f16ebb91ff92c6ba76d1225b5156b00e6c (patch)
tree4f724c32b3c1b43849c197d6a812439e4d9224c6 /tools
parenttests: add fuzz-bcd (diff)
downloadsystemd-c84059f16ebb91ff92c6ba76d1225b5156b00e6c.tar.xz
systemd-c84059f16ebb91ff92c6ba76d1225b5156b00e6c.zip
oss-fuzz: turn on the alignment check
Diffstat (limited to 'tools')
-rwxr-xr-xtools/oss-fuzz.sh3
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