diff options
author | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-07 23:05:40 +0000 |
---|---|---|
committer | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-07 23:05:40 +0000 |
commit | 79f15625f78dacb5df91921147d33bf66db8163f (patch) | |
tree | a8b2e209da5dff66e123f9b90db0de2d8eeb1ad8 /formats | |
parent | c89524202d1ab6b9533377122090939db6c0d857 (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@18478 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'formats')
-rw-r--r-- | formats/format_jpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/formats/format_jpeg.c b/formats/format_jpeg.c index d71aeec80..96fed0dea 100644 --- a/formats/format_jpeg.c +++ b/formats/format_jpeg.c @@ -55,7 +55,7 @@ static struct ast_frame *jpeg_read_image(int fd, int len) struct ast_frame fr; int res; char buf[65536]; - if (len > sizeof(buf)) { + if (len > sizeof(buf) || len < 0) { ast_log(LOG_WARNING, "JPEG image too large to read\n"); return NULL; } |