]> git.ipfire.org Git - thirdparty/asterisk.git/commit
core: avoid possible asterisk -r crash from long id
authorScott Griepentrog <sgriepentrog@digium.com>
Tue, 9 Dec 2014 20:46:17 +0000 (20:46 +0000)
committerScott Griepentrog <sgriepentrog@digium.com>
Tue, 9 Dec 2014 20:46:17 +0000 (20:46 +0000)
commit22a91bf69839f5a5191342c1e508cb8fd7d86d50
treeb590682278577ef7ca4c79d46beb9954c0a9bd01
parent2f21f85c3733ff633937549c3ba8983df0636dce
core: avoid possible asterisk -r crash from long id

When connecting to the remote console, an id string
is first provided that consts of the hostname, pid,
and version.  This is parsed by the remote instance
using a buffer that may be too short, and can allow
a buffer overrun because it is not terminated. This
patch adds termination and a larger buffer.

Review: https://reviewboard.asterisk.org/r/4182/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@429223 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/asterisk.c