diff options
author | Scott Griepentrog <sgriepentrog@digium.com> | 2015-03-17 21:57:26 +0000 |
---|---|---|
committer | Scott Griepentrog <sgriepentrog@digium.com> | 2015-03-17 21:57:26 +0000 |
commit | 1fb1c81923249413e3e439a645ade8793ccc0db6 (patch) | |
tree | cddd1baa58053e3aceaeb521b67148e5c944a162 /build_tools | |
parent | 2122c205e677a0da93b582b148b6495b660e1e6d (diff) |
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/
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@433060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'build_tools')
-rw-r--r-- | build_tools/cflags.xml | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ <member name="MALLOC_DEBUG" displayname="Keep Track of Memory Allocations"> <support_level>core</support_level> </member> + <member name="DEBUG_CHAOS" displayname="Randomly FAIL memory allocations or other operations"> + <conflict>MALLOC_DEBUG</conflict> + <support_level>core</support_level> + </member> <member name="BUSYDETECT_TONEONLY" displayname="Enable additional comparision of only the tone duration not the silence part"> <conflict>BUSYDETECT_COMPARE_TONE_AND_SILENCE</conflict> <defaultenabled>no</defaultenabled> |