[FFmpeg-cvslog] avcodec/ffv1dec: More completely check micro_version
Michael Niedermayer
git at videolan.org
Mon May 4 14:32:56 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon May 4 13:33:16 2015 +0200| [03baa861eae418a4a42752c4264dada1e087930d] | committer: Michael Niedermayer
avcodec/ffv1dec: More completely check micro_version
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=03baa861eae418a4a42752c4264dada1e087930d
---
libavcodec/ffv1dec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c
index 621aac7..2463876 100644
--- a/libavcodec/ffv1dec.c
+++ b/libavcodec/ffv1dec.c
@@ -528,6 +528,8 @@ static int read_extra_header(FFV1Context *f)
if (f->version > 2) {
c->bytestream_end -= 4;
f->micro_version = get_symbol(c, state, 0);
+ if (f->micro_version < 0)
+ return AVERROR_INVALIDDATA;
}
f->ac = f->avctx->coder_type = get_symbol(c, state, 0);
if (f->ac > 1) {
More information about the ffmpeg-cvslog
mailing list