mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 10:35:08 -05:00
test: add float-cast-overflow to 003-sanitizers test
This commit is contained in:
@@ -44,7 +44,7 @@ do
|
|||||||
export CC
|
export CC
|
||||||
|
|
||||||
for san_options in "" "-fsanitize=address" "-fsanitize=memory"; do
|
for san_options in "" "-fsanitize=address" "-fsanitize=memory"; do
|
||||||
export CFLAGS="-O2 -g -fsanitize=undefined -fsanitize=float-divide-by-zero -fno-sanitize-recover=undefined,float-divide-by-zero $san_options $arch_opts"
|
export CFLAGS="-O2 -g -fsanitize=undefined -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow -fno-sanitize-recover=all $san_options $arch_opts"
|
||||||
|
|
||||||
# clang msan doesn't work on i686 and otherwise requires patches
|
# clang msan doesn't work on i686 and otherwise requires patches
|
||||||
echo $CFLAGS | grep -q 'sanitize=memory' && continue
|
echo $CFLAGS | grep -q 'sanitize=memory' && continue
|
||||||
|
|||||||
Reference in New Issue
Block a user