[asterisk-commits] rmudgett: branch 11 r398721 - in /branches/11: ./ main/astmm.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 9 18:21:48 CDT 2013


Author: rmudgett
Date: Mon Sep  9 18:21:46 2013
New Revision: 398721

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=398721
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.
........

Merged revisions 398703 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/11/   (props changed)
    branches/11/main/astmm.c

Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/11/main/astmm.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/astmm.c?view=diff&rev=398721&r1=398720&r2=398721
==============================================================================
--- branches/11/main/astmm.c (original)
+++ branches/11/main/astmm.c Mon Sep  9 18:21:46 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