[asterisk-bugs] [Asterisk 0017590]: [patch] Crash when freeing buffer in update_curl

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jul 29 16:07:03 CDT 2010


The following issue has been RESOLVED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17590 
====================================================================== 
Reported By:                atis
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   17590
Category:                   Resources/res_config_curl
Reproducibility:            have not tried
Severity:                   crash
Priority:                   normal
Status:                     resolved
Target Version:             1.6.2.12
Asterisk Version:           SVN 
JIRA:                       SWP-1822 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-07-06 08:54 CDT
Last Modified:              2010-07-29 16:07 CDT
====================================================================== 
Summary:                    [patch] Crash when freeing buffer in update_curl
Description: 
free(buffer) causes crash with signal 6 Aborted.

HTTP message is clearly wrong, as it contains PHP error, but this
shouldn't crash asterisk.

        bufsize = 100
        buffer = 0x937c060 "1<br />\n<b>Fatal error</b>:  Call to
undefined function ast_sip_prune_rt() in <b>/opt/voip/web/curl_"
        __PRETTY_FUNCTION__ = "update_curl"

====================================================================== 

---------------------------------------------------------------------- 
 (0125330) svnbot (reporter) - 2010-07-29 16:07
 https://issues.asterisk.org/view.php?id=17590#c125330 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 280556

U   branches/1.6.2/res/res_config_curl.c

------------------------------------------------------------------------
r280556 | tilghman | 2010-07-29 16:07:01 -0500 (Thu, 29 Jul 2010) | 7
lines

Off-by-one error

(closes issue https://issues.asterisk.org/view.php?id=17590)
 Reported by: atis
 Patches: 
       20100729__issue17590.diff.txt uploaded by tilghman (license 14)

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-07-29 16:07 svnbot         Checkin                                      
2010-07-29 16:07 svnbot         Note Added: 0125330                          
2010-07-29 16:07 svnbot         Status                   ready for testing =>
assigned
2010-07-29 16:07 svnbot         Status                   assigned => resolved
2010-07-29 16:07 svnbot         Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list