[asterisk-bugs] [Asterisk 0018737]: [patch] MWI subscription to remote server crashes during parse

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Apr 28 13:10:16 CDT 2011


The following issue has been set as DUPLICATE OF issue 0018350. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18737 
====================================================================== 
Reported By:                cmaj
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18737
Category:                   Channels/chan_sip/Subscriptions
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     ready for review
Asterisk Version:           1.8.2.3 
JIRA:                       SWP-3051 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-02-02 20:50 CST
Last Modified:              2011-04-28 13:10 CDT
====================================================================== 
Summary:                    [patch] MWI subscription to remote server crashes
during parse
Description: 
Incorrect parsing in sip_subscribe_mwi was crashing Asterisk.

In sip.conf, just below your "register =>" lines and before peer/user
definitions, try adding:

mwi => 1234 at other_host/1234

...then issue "sip reload" - should crash.

Partial gdb backtrace:

(gdb) bt
https://issues.asterisk.org/view.php?id=0  0x00007fa68aabb990 in strchr () from
/lib/libc.so.6
https://issues.asterisk.org/view.php?id=1  0x00007fa65c0d4af7 in
sip_subscribe_mwi (value=0x0, lineno=0) at
chan_sip.c:7594

Attached patch corrects the problem.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
duplicate of        0018350 [patch] asterisk crash when setting out...
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-28 13:10 seanbright     Relationship added       duplicate of 0018350
======================================================================




More information about the asterisk-bugs mailing list