]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fixes crash caused by RTP comfort noise payload greater than 24 bytes
authorDavid Vossel <dvossel@digium.com>
Mon, 30 Nov 2009 17:35:48 +0000 (17:35 +0000)
committerDavid Vossel <dvossel@digium.com>
Mon, 30 Nov 2009 17:35:48 +0000 (17:35 +0000)
AST-2009-010

(closes issue #16242)
Reported by: amorsen
Patches:
      issue16242.diff uploaded by oej (license 306)
Tested by: amorsen, oej, dvossel

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@231518 65c4cc65-6c06-0410-ace0-fbb531ad65f3

rtp.c

diff --git a/rtp.c b/rtp.c
index f0430b5111f24ed01069ad6680cb55db12acc335..45c446453840b469cae8e678e919b22b57a680da 100644 (file)
--- a/rtp.c
+++ b/rtp.c
@@ -348,7 +348,6 @@ static struct ast_frame *process_rfc3389(struct ast_rtp *rtp, unsigned char *dat
        }
        rtp->f.frametype = AST_FRAME_CNG;
        rtp->f.subclass = data[0] & 0x7f;
-       rtp->f.datalen = len - 1;
        rtp->f.samples = 0;
        rtp->f.delivery.tv_usec = rtp->f.delivery.tv_sec = 0;
        f = &rtp->f;