]> 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:14:08 +0000 (17:14 +0000)
committerDavid Vossel <dvossel@digium.com>
Mon, 30 Nov 2009 17:14:08 +0000 (17:14 +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.4@231441 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/rtp.c

index 12e363809f0f09a96f6beb2a0be653dac65946da..a124bb745dd69f92311a419cc1687024d23cd0c9 100644 (file)
@@ -848,7 +848,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;