mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user