]> 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:20:50 +0000 (15:20 +0000)
committerScott Griepentrog <sgriepentrog@digium.com>
Mon, 16 Dec 2013 15:20:50 +0000 (15:20 +0000)
commit4865825a487e6fa108424f090495647db042768c
tree66f30a43c4f3c2b750b58e98a840227395d9af7c
parent1e49af0373e282073cfa75f92be650980b6cd041
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
........

Merged revisions 403853 from http://svn.asterisk.org/svn/asterisk/branches/1.8

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