aboutsummaryrefslogtreecommitdiffstats
path: root/formats
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-17 15:52:15 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-17 15:52:15 +0000
commitb853a8658dea70b5344466817b23c1a45d585e32 (patch)
treef61e9e193572fa7437084709bfa5471d5c2247cd /formats
parent7b6703a5d04a4789c3374480ba41991790d0e7cc (diff)
Overflow bad
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@37765 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'formats')
-rw-r--r--formats/format_h263.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/formats/format_h263.c b/formats/format_h263.c
index ccba23d6d..e57b9924c 100644
--- a/formats/format_h263.c
+++ b/formats/format_h263.c
@@ -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)