]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_sms: BufferOverflow when receiving odd length 16 bit message
authorScott Griepentrog <sgriepentrog@digium.com>
Mon, 16 Dec 2013 15:39:30 +0000 (15:39 +0000)
committerScott Griepentrog <sgriepentrog@digium.com>
Mon, 16 Dec 2013 15:39:30 +0000 (15:39 +0000)
commit8105bf41f57878607403d068385774b679706bc8
treed99617d20a07784d488cff50f7b713ebfed0ba27
parent33ce9ae08e85ceabd179c8bdef108d1ff5778ad2
app_sms: BufferOverflow when receiving odd length 16 bit message

This patch prevents an infinite loop overwriting memory when
a message is received into the unpacksms16() function, where
the length of the message is an odd number of bytes.

(closes issue ASTERISK-22590)
Reported by: Jan Juergens
Tested by: Jan Juergens

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10-digiumphones@403861 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_sms.c