[asterisk-bugs] [JIRA] (ASTERISK-21854) possible memory corruption when using long Asterisk-version strings

Rusty Newton (JIRA) noreply at issues.asterisk.org
Mon Jun 3 17:01:08 CDT 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-21854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=207001#comment-207001 ] 

Rusty Newton commented on ASTERISK-21854:
-----------------------------------------

Using the same string: "11.4.0 890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"

I consistently get the following output on a -r connection to asterisk:
{noformat}
Connected to Asterisk 11.4.0 890123456789012345678901234567890123456789012345678901234567 currently running on ubuntu (pid = 13048)
890123456789012345678901234567890
{noformat}

Looks like an issue occurring only where the version string is displayed when connecting with a remote console.

Some of the other places you can see the version string:

{noformat}
 asterisk -V
Asterisk 11.4.0 890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
{noformat}

{noformat}
root at ubuntu:/usr/src/asterisk-11.4.0# asterisk -c
Asterisk 11.4.0 890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890, Copyright (C) 1999 - 2012 Digium, Inc. and others.
{noformat}

{noformat}
*CLI> core show settings

PBX Core settings
-----------------
  Version:                     11.4.0 890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
{noformat}

{noformat}
*CLI> core show version
Asterisk 11.4.0 890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 built by root @ ubuntu on a x86_64 running Linux on 2013-05-22 20:02:45 UTC
{noformat}
                
> possible memory corruption when using long Asterisk-version strings
> -------------------------------------------------------------------
>
>                 Key: ASTERISK-21854
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21854
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: General
>    Affects Versions: 11.4.0
>            Reporter: klaus3000
>            Severity: Minor
>
> When using a long version string in file ".version", the presented string when connecting to the Asterisk CLI looks corrupted. See following example: the string printed directly is correct, the "Connected to" string (which shows the version received via the socket from the server) is broken:
> {noformat}
> # rasterisk
> Asterisk 11.4.0 890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890, Copyright (C) 1999 - 2012 Digium, Inc. and others.
> Created by Mark Spencer <markster at digium.com>
> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
> This is free software, with components licensed under the GNU General Public
> License version 2 and other licenses; you are welcome to redistribute it under
> certain conditions. Type 'core show license' for details.
> =========================================================================
> Connected to Asterisk 11.4.0 89012345678901234567890123456789012345678901234567890123456789▒▒ ▒ currently running on hvst (pid = 28190)
> 0123456789012345678901234567890
> hvst*CLI>
> {noformat}
> The bug exists since version 1.4.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list