projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3dfbdb3
)
avcodec/ffv1dec: More completely check micro_version
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 4 May 2015 11:33:16 +0000
(13:33 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 4 May 2015 12:31:45 +0000
(14:31 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ffv1dec.c
patch
|
blob
|
history
diff --git
a/libavcodec/ffv1dec.c
b/libavcodec/ffv1dec.c
index
621aac7
..
2463876
100644
(file)
--- 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) {