From f25b2653293d0d96479d3d83795f40828f0b7bb7 Mon Sep 17 00:00:00 2001 From: Scott Griepentrog Date: Tue, 17 Mar 2015 22:03:37 +0000 Subject: core: Introduce chaos into memory allocations Locate potential crashes by exercising seldom used code paths. This patch introduces a new define DEBUG_CHAOS, and mechanism to randomly return an error condition from functions that will seldom do so. Functions that handle the allocation of memory get the first treatment. Review: https://reviewboard.asterisk.org/r/4463/ ........ Merged revisions 433060 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@433063 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- build_tools/cflags.xml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build_tools') diff --git a/build_tools/cflags.xml b/build_tools/cflags.xml index 082e8e63f..49a354767 100644 --- a/build_tools/cflags.xml +++ b/build_tools/cflags.xml @@ -79,6 +79,10 @@ core + + MALLOC_DEBUG + core + BUSYDETECT_COMPARE_TONE_AND_SILENCE no -- cgit v1.2.3