summaryrefslogtreecommitdiffhomepage
path: root/libtommath
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-05-27 20:33:45 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-05-27 20:33:45 +0800
commit8048473eb9ab268c9e00d274f291b77c3671b92f (patch)
tree2378f6b4de18d5a963ad211ced7875b3568f102f /libtommath
parent4216c984ae7e5b2ce2cc380dd0c92f4bee2dd13d (diff)
Avoid oss-fuzz $SANITIZER causing wrong build
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22608
Diffstat (limited to 'libtommath')
-rw-r--r--libtommath/makefile_include.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/libtommath/makefile_include.mk b/libtommath/makefile_include.mk
index ceb2d44..711b630 100644
--- a/libtommath/makefile_include.mk
+++ b/libtommath/makefile_include.mk
@@ -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