[asterisk-bugs] [Asterisk 0013398]: [patch] Channel name buffer is too small
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu Nov 13 15:23:56 CST 2008
The following issue has been RESOLVED.
======================================================================
http://bugs.digium.com/view.php?id=13398
======================================================================
Reported By: bamby
Assigned To: svnbot
======================================================================
Project: Asterisk
Issue ID: 13398
Category: Core/ManagerInterface
Reproducibility: always
Severity: tweak
Priority: normal
Status: resolved
Asterisk Version: 1.4.21.2
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2008-08-29 03:40 CDT
Last Modified: 2008-11-13 15:23 CST
======================================================================
Summary: [patch] Channel name buffer is too small
Description:
When doing Originate request using the Manager Interface the Channel
attribute of the request contains the channel specification. The buffer for
this data is AST_MAX_EXTENSION long, which is 80 bytes only, while for
example a SIP channel specification can contain not only extension but also
authname (can be quite long), password, md5 secret (32 bytes), hostname
(MAXHOSTNAMELEN = 256) and port (5 bytes). So the buffer for SIP channel
specification should be at least 462 bytes:
channel name (3 bytes) + extension (80) + password or digest (at least
32) + autname (about 80 bytes) + hostname (256) + port (5) + delimiters
(6)
The patch (against trunk) attached.
======================================================================
----------------------------------------------------------------------
(0094864) svnbot (reporter) - 2008-11-13 15:23
http://bugs.digium.com/view.php?id=13398#c94864
----------------------------------------------------------------------
Repository: asterisk
Revision: 156688
U branches/1.4/main/manager.c
------------------------------------------------------------------------
r156688 | tilghman | 2008-11-13 15:23:55 -0600 (Thu, 13 Nov 2008) | 7
lines
Provide more space for all the data which can appear in an originating
channel name.
(closes issue http://bugs.digium.com/view.php?id=13398)
Reported by: bamby
Patches:
manager.c.diff uploaded by bamby (license 430)
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=156688
Issue History
Date Modified Username Field Change
======================================================================
2008-11-13 15:23 svnbot Checkin
2008-11-13 15:23 svnbot Note Added: 0094864
2008-11-13 15:23 svnbot Status confirmed => resolved
2008-11-13 15:23 svnbot Resolution open => fixed
2008-11-13 15:23 svnbot Assigned To => svnbot
======================================================================
More information about the asterisk-bugs
mailing list