[Privoxy-commits] [privoxy] 10/14: Add configure option to enable UndefinedBehaviorSanitizer

User Git git at git.privoxy.org
Sun Mar 21 07:35:02 UTC 2021


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

git pushed a commit to branch master
in repository privoxy.

commit 22c27e92a8889ef9f6ea2099db2d71c1befeab68
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Sat Feb 6 11:24:52 2021 +0100

    Add configure option to enable UndefinedBehaviorSanitizer
---
 configure.in | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/configure.in b/configure.in
index 7d5c89a3..6b7f944b 100644
--- a/configure.in
+++ b/configure.in
@@ -168,6 +168,12 @@ if test "x$with_asan" = "xyes"; then
     LDFLAGS="$LDFLAGS -fsanitize=address"
 fi
 
+AC_ARG_WITH(usan, [  --with-usan       Enable UndefinedBehaviorSanitizer. Requires compiler support.])
+if test "x$with_usan" = "xyes"; then
+    CFLAGS="$CFLAGS -fsanitize=undefined"
+    LDFLAGS="$LDFLAGS -fsanitize=undefined"
+fi
+
 dnl =================================================================
 dnl Check for user and group validity
 dnl =================================================================

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Privoxy-commits mailing list