diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-05-27 20:33:45 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-05-27 20:33:45 +0800 |
commit | 3d954052adf400c7dae6b0d38e3a476dbc89db32 (patch) | |
tree | ee6dfbc2b695c90b21b0f738df611082df36ae94 | |
parent | 7dc1401b04cdffb094a19f377d6c9a165385e3dc (diff) | |
download | dropbear-3d954052adf400c7dae6b0d38e3a476dbc89db32.tar.gz |
Avoid oss-fuzz $SANITIZER causing wrong build
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22608
-rw-r--r-- | libtommath/makefile_include.mk | 3 |
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 |