]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix a crash in the ChanSpy application. The issue here is that if you call
authorRussell Bryant <russell@russellbryant.com>
Wed, 20 Aug 2008 22:14:35 +0000 (22:14 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 20 Aug 2008 22:14:35 +0000 (22:14 +0000)
commit6177d367e2d7a1f57e2dc1522b5ef4e8e8311857
tree0c5627c87d28143021ea97111f35d604f5624d68
parent54388197d200f73c4009e6d36e138af4f1cb5519
Fix a crash in the ChanSpy application.  The issue here is that if you call
ChanSpy and specify a spy group, and sit in the application long enough looping
through the channel list, you will eventually run out of stack space and the
application with exit with a seg fault.  The backtrace was always inside of
a harmless snprintf() call, so it was tricky to track down.  However, it turned
out that the call to snprintf() was just the biggest stack consumer in this
code path, so it would always be the first one to hit the boundary.

(closes issue #13338)
Reported by: ruddy

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@139213 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_chanspy.c