[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r23469 - gnunet
From: |
gnunet |
Subject: |
[GNUnet-SVN] r23469 - gnunet |
Date: |
Tue, 28 Aug 2012 12:19:37 +0200 |
Author: LRN
Date: 2012-08-28 12:19:37 +0200 (Tue, 28 Aug 2012)
New Revision: 23469
Modified:
gnunet/configure.ac
Log:
Make poisoning configurable. Enable it on debug builds by default
Modified: gnunet/configure.ac
===================================================================
--- gnunet/configure.ac 2012-08-28 09:59:15 UTC (rev 23468)
+++ gnunet/configure.ac 2012-08-28 10:19:37 UTC (rev 23469)
@@ -256,6 +256,26 @@
], [])
AC_DEFINE_UNQUOTED([GNUNET_EXTRA_LOGGING],[$extra_logging],[1 if extra logging
is enabled, 2 for very verbose extra logging, 0 otherwise])
+# should memory poisoning be enabled?
+AC_MSG_CHECKING(whether to poison freed memory)
+AC_ARG_ENABLE([poisoning],
+ [AS_HELP_STRING([--enable-poisoning], [enable poisoning of freed memory
(good for debugging)])],
+ [enable_poisoning=${enableval}],
+ [
+ if test "x$extra_logging" != "xGNUNET_NO"; then
+ enable_poisoning="defaults to yes (extra logging is enabled)"
+ else
+ enable_poisoning=no
+ fi
+ ])
+AC_MSG_RESULT($enable_poisoning)
+if test ! "x$enable_poisoning" = "xno"; then
+ enable_poisoning=1
+else
+ enable_poisoning=0
+fi
+AC_DEFINE_UNQUOTED([ENABLE_POISONING],[$enable_poisoning],[1 if freed memory
should be poisoned, 0 otherwise])
+
if test $build = $target
then
AC_MSG_CHECKING([for working HMAC])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r23469 - gnunet,
gnunet <=