Avoid oss-fuzz $SANITIZER causing wrong build

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22608
This commit is contained in:
Matt Johnston 2020-05-27 20:33:45 +08:00
parent 4216c984ae
commit 8048473eb9

View File

@ -50,7 +50,8 @@ endif
LTM_CFLAGS += -I./ -Wall -Wsign-compare -Wextra -Wshadow
ifdef SANITIZER
# renamed for Dropbear to avoid clash with oss-fuzz $SANITIZER var
ifdef LTM_SANITIZER
LTM_CFLAGS += -fsanitize=undefined -fno-sanitize-recover=all -fno-sanitize=float-divide-by-zero
endif