[asterisk-bugs] [Asterisk 0012986]: [patch] segfault in app_chanspy.cpp
noreply at bugs.digium.com
noreply at bugs.digium.com
Thu Jul 3 15:11:58 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=12986
======================================================================
Reported By: andrew53
Assigned To: putnopvut
======================================================================
Project: Asterisk
Issue ID: 12986
Category: Applications/app_chanspy
Reproducibility: random
Severity: crash
Priority: normal
Status: assigned
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 127434
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 07-03-2008 14:37 CDT
Last Modified: 07-03-2008 15:11 CDT
======================================================================
Summary: [patch] segfault in app_chanspy.cpp
Description:
Due to some kind of race condition that I wasn't able to identify exactly
(most likely a channel disconnected while trying to attach to it for
monitoring), ast_bridged_channel(spyee) (called from channel_spy) returns
null pointer which start_spying tries to dereference without checking.
Backtrace and patch are attached.
======================================================================
----------------------------------------------------------------------
svnbot - 07-03-08 15:11
----------------------------------------------------------------------
Repository: asterisk
Revision: 127831
U trunk/apps/app_chanspy.c
------------------------------------------------------------------------
r127831 | mmichelson | 2008-07-03 15:11:52 -0500 (Thu, 03 Jul 2008) | 6
lines
Fix a crash when attempting to spy on an unbridged channel.
(closes issue http://bugs.digium.com/view.php?id=12986)
Reported by: andrew53
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=127831
Issue History
Date Modified Username Field Change
======================================================================
07-03-08 15:11 svnbot Checkin
07-03-08 15:11 svnbot Note Added: 0089709
======================================================================
More information about the asterisk-bugs
mailing list