[asterisk-bugs] [Asterisk 0015392]: [patch] 1.6.1.1: Memory handling error in main/pbx.c (pbx_extension_helper)

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Nov 11 14:00:29 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15392 
====================================================================== 
Reported By:                yrashk
Assigned To:                dbrooks
====================================================================== 
Project:                    Asterisk
Issue ID:                   15392
Category:                   PBX/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.1.1 
JIRA:                       SWP-263 
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:             2009-06-24 19:25 CDT
Last Modified:              2009-11-11 14:00 CST
====================================================================== 
Summary:                    [patch] 1.6.1.1: Memory handling error in main/pbx.c
(pbx_extension_helper)
Description: 
Due to Solaris x64 specifics, it won't accept NULLs as string. I think
Asterisk had similar problems before, and apparently it is still doing this
in some places. I found one of them today, since it was blocking asterisk
to start.

Basically, asterisk was segfaulting on every start, on the strlen()
routine.

Attached you can find gdb analysis on a core dumped and a patch that
solves this problem
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0015505 Asterisk crashing in cmd voicemail
====================================================================== 

---------------------------------------------------------------------- 
 (0113675) svnbot (reporter) - 2009-11-11 14:00
 https://issues.asterisk.org/view.php?id=15392#c113675 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 229501

_U  branches/1.6.1/
U   branches/1.6.1/main/pbx.c

------------------------------------------------------------------------
r229501 | dbrooks | 2009-11-11 14:00:28 -0600 (Wed, 11 Nov 2009) | 22
lines

Merged revisions 229499 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
  r229499 | dbrooks | 2009-11-11 13:48:18 -0600 (Wed, 11 Nov 2009) | 15
lines
  
  Merged revisions 229498 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r229498 | dbrooks | 2009-11-11 13:46:19 -0600 (Wed, 11 Nov 2009) | 8
lines
    
    Solaris doesn't like NULL going to ast_log
    
    Solaris will crash if NULL is passed to ast_log. This simple patch
simply uses S_OR to
    get around this.
    
    (closes issue https://issues.asterisk.org/view.php?id=15392)
    Reported by: yrashk
  ........
................

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-11-11 14:00 svnbot         Checkin                                      
2009-11-11 14:00 svnbot         Note Added: 0113675                          
======================================================================




More information about the asterisk-bugs mailing list