]> git.ipfire.org Git - thirdparty/asterisk.git/commit
core: avoid possible asterisk -r crash from long id
authorMark Michelson <mmichelson@digium.com>
Wed, 1 Apr 2015 20:32:52 +0000 (20:32 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 1 Apr 2015 20:32:52 +0000 (20:32 +0000)
commitb6fff2719d0223684c061c8c83748b3db0eafb26
treec4b64fae0e4a017ef5d3ad700fec1b7639120743
parent8ae3670781ff7fd1e3b1ee634a37029a693b9aaa
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/

AFS-254
........

Merged revisions 429223 from http://svn.asterisk.org/svn/asterisk/branches/13

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