[asterisk-bugs] [Asterisk 0016680]: [patch] res_phoneprov.so causes Asterisk to crash on ${MAC}-phone.cfg file

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Jan 24 15:50:30 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16680 
====================================================================== 
Reported By:                lmadsen
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16680
Category:                   Resources/res_phoneprov
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 242357 
Request Review:              
====================================================================== 
Date Submitted:             2010-01-22 18:26 CST
Last Modified:              2010-01-24 15:50 CST
====================================================================== 
Summary:                    [patch] res_phoneprov.so causes Asterisk to crash on
${MAC}-phone.cfg file
Description: 
When accessing http://192.168.x.x/phoneprov/0004f2040001-phone.cfg file
(for example) Asterisk trunk will crash. I've provided the backtrace along
with some notes that seanbright had me run on the backtrace via IRC.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
child of            0016682 Hundreds (thousands?) of WARNING messag...
====================================================================== 

---------------------------------------------------------------------- 
 (0117112) svnbot (reporter) - 2010-01-24 15:50
 https://issues.asterisk.org/view.php?id=16680#c117112 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 242607

U   trunk/res/res_phoneprov.c

------------------------------------------------------------------------
r242607 | seanbright | 2010-01-24 15:49:17 -0600 (Sun, 24 Jan 2010) | 8
lines

Instead of crashing, allocate our header ast_str before we try to use it.

(closes issue https://issues.asterisk.org/view.php?id=16680)
Reported by: lmadsen
Patches:
      issue16680_20100122.patch uploaded by seanbright (license 71)
Tested by: lmadsen

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-24 15:50 svnbot         Note Added: 0117112                          
======================================================================




More information about the asterisk-bugs mailing list