gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 01/03: configure: fixed compiler flags for UBSan


From: gnunet
Subject: [libmicrohttpd] 01/03: configure: fixed compiler flags for UBSan
Date: Sat, 19 Mar 2022 13:21:52 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 38a504c9802e60af217cdb5e235ca1c3f1eb48a2
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sat Mar 19 14:30:46 2022 +0300

    configure: fixed compiler flags for UBSan
---
 configure.ac | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

diff --git a/configure.ac b/configure.ac
index 5a6400bb..1ecdc614 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3238,19 +3238,23 @@ int main(void)
                    )
                  ]
                )
+               AS_CASE(["$enabled_sanitizers"], [*undefined],
+                 [
+                   AS_VAR_IF([mhd_cv_cc_sanitizer_undefined], ["yes"],[],
+                     [
+                       # A workaround for broken clang which is trying to use 
UBSan lib
+                       # even when instructed to not use it
+                       CFLAGS="${CFLAGS_ac} ${san_FLAGS} ${san_CFLAGS} 
${user_CFLAGS}"
+                       
AX_APPEND_LINK_FLAGS([-fsanitize-trap=implicit-conversion],
+                         [san_FLAGS], [], 
[AC_LANG_SOURCE([${test_undf_prog}])])
+                     ]
+                   )
+                 ]
+               )
              ]
            )
            AS_CASE(["$enabled_sanitizers"], [*undefined],
              [
-               AS_VAR_IF([mhd_cv_cc_sanitizer_undefined], ["yes"],[],
-                 [
-                   # A workaround for broken clang which is trying to use 
UBSan lib
-                   # even when instructed to not use it
-                   CFLAGS="${CFLAGS_ac} ${san_FLAGS} ${san_CFLAGS} 
${user_CFLAGS}"
-                   AX_APPEND_LINK_FLAGS([-fsanitize-trap=implicit-conversion],
-                     [san_FLAGS], [], [AC_LANG_SOURCE([${test_undf_prog}])])
-                 ]
-               )
                CFLAGS="${CFLAGS_ac} ${san_FLAGS} ${san_CFLAGS} ${user_CFLAGS}"
                AX_APPEND_LINK_FLAGS([-fsanitize=bounds-strict 
-fsanitize=local-bounds -fsanitize=implicit-conversion 
-fsanitize=nullability-arg],
                  [san_CFLAGS], [], [AC_LANG_SOURCE([${test_undf_prog}])])

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]