projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
22c27e9
)
Add configure option to enable MemorySanitizer
author
Fabian Keil
<fk@fabiankeil.de>
Sat, 6 Feb 2021 19:19:10 +0000
(20:19 +0100)
committer
Fabian Keil
<fk@fabiankeil.de>
Sun, 21 Mar 2021 06:58:53 +0000
(07:58 +0100)
configure.in
patch
|
blob
|
history
diff --git
a/configure.in
b/configure.in
index
6b7f944
..
07f2fd9
100644
(file)
--- a/
configure.in
+++ b/
configure.in
@@
-168,6
+168,12
@@
if test "x$with_asan" = "xyes"; then
LDFLAGS="$LDFLAGS -fsanitize=address"
fi
LDFLAGS="$LDFLAGS -fsanitize=address"
fi
+AC_ARG_WITH(asan, [ --with-msan Enable MemorySanitizer. Requires compiler support.])
+if test "x$with_msan" = "xyes"; then
+ CFLAGS="$CFLAGS -fsanitize=memory"
+ LDFLAGS="$LDFLAGS -fsanitize=memory"
+fi
+
AC_ARG_WITH(usan, [ --with-usan Enable UndefinedBehaviorSanitizer. Requires compiler support.])
if test "x$with_usan" = "xyes"; then
CFLAGS="$CFLAGS -fsanitize=undefined"
AC_ARG_WITH(usan, [ --with-usan Enable UndefinedBehaviorSanitizer. Requires compiler support.])
if test "x$with_usan" = "xyes"; then
CFLAGS="$CFLAGS -fsanitize=undefined"