From 83f5766c4728c65267612e1dfd41e8ac0135587b Mon Sep 17 00:00:00 2001
From: Tilghman Lesher <tilghman@meg.abyt.es>
Date: Mon, 17 Jul 2006 15:56:16 +0000
Subject: [PATCH] Merged revisions 37765 via svnmerge from
 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/formats/format_h263.c b/formats/format_h263.c
index 08891c8cd2..70108e9ef7 100644
--- a/formats/format_h263.c
+++ b/formats/format_h263.c
@@ -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;
-- 
GitLab