[asterisk-commits] rmudgett: branch 1.8 r398703 - /branches/1.8/main/astmm.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Sep 9 18:15:40 CDT 2013
Author: rmudgett
Date: Mon Sep 9 18:15:38 2013
New Revision: 398703
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=398703
Log:
MALLOC_DEBUG: Change fence magic number to be completely different from the freed magic number.
Race conditions between freeing a nul terminated string and
ast_strdup()'ing it are more likely to be detected if the fence and freed
magic numbers are completely different.
Modified:
branches/1.8/main/astmm.c
Modified: branches/1.8/main/astmm.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/astmm.c?view=diff&rev=398703&r1=398702&r2=398703
==============================================================================
--- branches/1.8/main/astmm.c (original)
+++ branches/1.8/main/astmm.c Mon Sep 9 18:15:38 2013
@@ -70,7 +70,7 @@
#undef vasprintf
#undef asprintf
-#define FENCE_MAGIC 0xdeadbeef /*!< Allocated memory high/low fence overwrite check. */
+#define FENCE_MAGIC 0xfeedbabe /*!< Allocated memory high/low fence overwrite check. */
#define FREED_MAGIC 0xdeaddead /*!< Freed memory wipe filler. */
#define MALLOC_FILLER 0x55 /*!< Malloced memory filler. Must not be zero. */
More information about the asterisk-commits
mailing list