Overflow bad

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@37765 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2006-07-17 15:52:15 +00:00
parent c5623e2acd
commit f23368365a

View File

@@ -161,6 +161,7 @@ static struct ast_frame *h263_read(struct ast_filestream *s, int *whennext)
len &= 0x7fff;
if (len > sizeof(s->h263)) {
ast_log(LOG_WARNING, "Length %d is too long\n", len);
return NULL;
}
if ((res = fread(s->h263, 1, len, s->f)) != len) {
if (res)