projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8b5c4d
)
mpc7: return error if packet is too small.
author
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 14 Sep 2011 15:16:42 +0000
(11:16 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Sun, 2 Oct 2011 14:34:39 +0000
(10:34 -0400)
libavcodec/mpc7.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpc7.c
b/libavcodec/mpc7.c
index
02c83fc
..
6f79c7b
100644
(file)
--- a/
libavcodec/mpc7.c
+++ b/
libavcodec/mpc7.c
@@
-203,6
+203,7
@@
static int mpc7_decode_frame(AVCodecContext * avctx,
memset(bands, 0, sizeof(bands));
if(buf_size <= 4){
av_log(avctx, AV_LOG_ERROR, "Too small buffer passed (%i bytes)\n", buf_size);
+ return AVERROR(EINVAL);
}
out_size = (buf[1] ? c->lastframelen : MPC_FRAME_SIZE) * 4;