Merged revisions 37765 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 17 Jul 2006 15:56:16 +0000 (15:56 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 17 Jul 2006 15:56:16 +0000 (15:56 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r37765 | tilghman | 2006-07-17 10:52:15 -0500 (Mon, 17 Jul 2006) | 2 lines

Overflow bad

........

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

formats/format_h263.c

index 08891c8..70108e9 100644 (file)
@@ -84,7 +84,7 @@ static struct ast_frame *h263_read(struct ast_filestream *s, int *whennext)
        len &= 0x7fff;
        if (len > BUF_SIZE) {
                ast_log(LOG_WARNING, "Length %d is too long\n", len);
-               len = BUF_SIZE; /* XXX truncate ? */
+               return NULL;
        }
        s->fr.frametype = AST_FRAME_VIDEO;
        s->fr.subclass = AST_FORMAT_H263;