[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] branch master updated: configure: really disable leak sa
From: |
gnunet |
Subject: |
[libmicrohttpd] branch master updated: configure: really disable leak sanitizer if it's disabled by configure parameters |
Date: |
Sat, 11 Dec 2021 12:20:24 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
The following commit(s) were added to refs/heads/master by this push:
new 19e8d323 configure: really disable leak sanitizer if it's disabled by
configure parameters
19e8d323 is described below
commit 19e8d3230315b4c049b17b25aeb16df143b89743
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sat Dec 11 14:20:14 2021 +0300
configure: really disable leak sanitizer if it's disabled by configure
parameters
---
configure.ac | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/configure.ac b/configure.ac
index af0c95f5..9d628ee1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2940,7 +2940,7 @@ AS_VAR_IF([enable_sanitizers], ["no"], [:],
enabled_sanitizers="${enabled_sanitizers}${enabled_sanitizers:+, }address"
AS_VAR_IF([enable_san_leak], ["no"], [:],
[
- AC_CACHE_CHECK([whether leak detect is supported by address
sanitizer], [mhd_cv_cc_sanitizer_address_leak],
+ AC_CACHE_CHECK([whether leak detect is not rejected by
address sanitizer], [mhd_cv_cc_sanitizer_address_leak],
[
CFLAGS="${saved_CFLAGS} ${san_CFLAGS} ${san_FLAGS}"
ASAN_OPTIONS="exitcode=88:detect_leaks=1:halt_on_error=1"
@@ -3278,19 +3278,17 @@ int main(void)
AM_ASAN_OPTIONS="${AM_ASAN_OPTIONS}:max_free_fill_size=1024:detect_invalid_pointer_pairs=3"
AM_ASAN_OPTIONS="${AM_ASAN_OPTIONS}:handle_ioctl=1:halt_on_error=1"
AS_VAR_IF([enable_san_upoison], ["yes"],
[AM_ASAN_OPTIONS="${AM_ASAN_OPTIONS}:allow_user_poisoning=1"])
+ AS_VAR_IF([enable_san_leak], ["yes"],
+ [AS_VAR_IF([mhd_cv_cc_sanitizer_address_leak], ["yes"],
+ [AM_ASAN_OPTIONS="${AM_ASAN_OPTIONS}:detect_leaks=1"])
+ ], [AM_ASAN_OPTIONS="${AM_ASAN_OPTIONS}:detect_leaks=0"]
+ )
]
)
AS_VAR_IF([enable_san_undef], [yes],
[AM_UBSAN_OPTIONS="exitcode=87:print_stacktrace=1:halt_on_error=1"])
AS_VAR_IF([enable_san_leak], ["yes"],
- [
- AS_VAR_IF([enable_san_address], ["yes"],
- [AS_VAR_IF([mhd_cv_cc_sanitizer_address_leak], ["yes"],
- [AM_ASAN_OPTIONS="${AM_ASAN_OPTIONS}:detect_leaks=1"])
- ]
- )
- AM_LSAN_OPTIONS="use_unaligned=1"
- ]
+ [AM_LSAN_OPTIONS="use_unaligned=1"]
)
AM_TESTS_ENVIRONMENT='\
ASAN_OPTIONS="$(AM_ASAN_OPTIONS)" ; export ASAN_OPTIONS ; \
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libmicrohttpd] branch master updated: configure: really disable leak sanitizer if it's disabled by configure parameters,
gnunet <=