diff options
author | Richard Mudgett <rmudgett@digium.com> | 2011-03-31 20:12:34 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2011-03-31 20:12:34 +0000 |
commit | ee44bf7257af868d701da6a8144e8e54980a0578 (patch) | |
tree | 3677fcbf0b3b0b3263e138cdeda54d03ed84d57d /apps | |
parent | 57d979fa26a07ffa586c51cb16010d5135434c6d (diff) |
Merged revisions 312022 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r312022 | rmudgett | 2011-03-31 15:11:40 -0500 (Thu, 31 Mar 2011) | 14 lines
chan_misdn segfaults when DEBUG_THREADS is enabled.
The segfault happens because jb->mutexjb is uninitialized from the
ast_malloc(). The internals of ast_mutex_init() were assuming a nonzero
value meant mutex tracking initialization had already happened. Recent
changes to mutex tracking code to reduce excessive memory consumption
exposed this uninitialized value.
Converted misdn_jb_init() to use ast_calloc() instead of ast_malloc().
Also eliminated redundant zero initialization code in the routine.
(closes issue #18975)
Reported by: irroot
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@312023 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
0 files changed, 0 insertions, 0 deletions