]> 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:38:11 +0000 (15:38 +0000)
committerScott Griepentrog <sgriepentrog@digium.com>
Mon, 16 Dec 2013 15:38:11 +0000 (15:38 +0000)
commit8befb655f370639d71d9b6d52e66ea6bea79a1fe
treeafccfdcb9f9f4ab79584013baaa65aad02a2e5b8
parentd85d31ca5ec19691f785635ea3394e321655aa21
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/certified/branches/11.2@403859 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_sms.c