[asterisk-bugs] [Asterisk 0016504]: Segfault in res_agi with no second paramter to EXEC
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Dec 22 20:55:25 CST 2009
The following issue has been RESOLVED.
======================================================================
https://issues.asterisk.org/view.php?id=16504
======================================================================
Reported By: bklang
Assigned To: tilghman
======================================================================
Project: Asterisk
Issue ID: 16504
Category: Resources/res_agi
Reproducibility: always
Severity: crash
Priority: normal
Status: resolved
Asterisk Version: SVN
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1
SVN Revision (number only!): 236065
Request Review:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2009-12-22 18:48 CST
Last Modified: 2009-12-22 20:55 CST
======================================================================
Summary: Segfault in res_agi with no second paramter to EXEC
Description:
This crash occurs reliably, usually on the second invocation of the AGI
script. The AGI script is called via FastAGI to a network socket on
localhost.
This has been tested with the AGI EXEC command to reliably crash Asterisk.
The problem occurs when a command is passed to EXEC with no arguments. In
my case, the command was
"EXEC NoCDR " (including the trailing space)
If I supply any string for the command argument the segfault does not
occur. For example:
"EXEC NoCDR x"
gdb log output attached (bt;bt full; thread apply all bt full)
======================================================================
----------------------------------------------------------------------
(0115698) svnbot (reporter) - 2009-12-22 20:55
https://issues.asterisk.org/view.php?id=16504#c115698
----------------------------------------------------------------------
Repository: asterisk
Revision: 236184
U branches/1.4/res/res_agi.c
------------------------------------------------------------------------
r236184 | tilghman | 2009-12-22 20:55:24 -0600 (Tue, 22 Dec 2009) | 4
lines
If EXEC only gets a single argument, don't crash when the second is used.
(closes issue https://issues.asterisk.org/view.php?id=16504)
Reported by: bklang
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=236184
Issue History
Date Modified Username Field Change
======================================================================
2009-12-22 20:55 svnbot Checkin
2009-12-22 20:55 svnbot Note Added: 0115698
2009-12-22 20:55 svnbot Status new => assigned
2009-12-22 20:55 svnbot Assigned To => tilghman
2009-12-22 20:55 svnbot Status assigned => resolved
2009-12-22 20:55 svnbot Resolution open => fixed
======================================================================
More information about the asterisk-bugs
mailing list