[Home]

Summary:ASTERISK-05612: seg fault if channel variable in Setvar is not set
Reporter:peter (peter)Labels:
Date Opened:2005-11-15 12:40:46.000-0600Date Closed:2008-01-15 15:56:05.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/ManagerInterface
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) managersetvar.txt
Description:In manager.c function action_setvar.

if the channel variable is zero length, the variable c will not be set and segfault on the call too ast_mutex_unlock.
Comments:By: BJ Weschke (bweschke) 2005-11-15 12:54:51.000-0600

can you please post an example that you feed in the manager to cause the segfault?

By: peter (peter) 2005-11-15 13:17:50.000-0600

What had gotten posted is:

Action: SetVar
Channel:
Variable: WRAP_ON_DISCONNECT
Value: 1
ActionId: 0.417933106512415

By: Olle Johansson (oej) 2005-11-15 13:31:58.000-0600

Try this patch. Disclaimer on file.

By: Kevin P. Fleming (kpfleming) 2005-11-15 13:40:53.000-0600

Committed to CVS HEAD, thanks!

By: Digium Subversion (svnbot) 2008-01-15 15:56:05.000-0600

Repository: asterisk
Revision: 7099

U   trunk/ChangeLog
U   trunk/manager.c

------------------------------------------------------------------------
r7099 | russell | 2008-01-15 15:56:05 -0600 (Tue, 15 Jan 2008) | 2 lines

don't crash on setvar (issue ASTERISK-5612)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=7099