[FFmpeg-devel] [PATCH 2/3] avcodec/mpeg_er: Clear mcsel in mpeg_er_decode_mb()
Michael Niedermayer
michael at niedermayer.cc
Mon Oct 9 03:34:07 EEST 2017
Fixes out of array read
Should fix: 3516/clusterfuzz-testcase-minimized-4608518562775040 (not reprodoceable)
Found-by: Insu Yun, Georgia Tech.
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavcodec/mpeg_er.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/mpeg_er.c b/libavcodec/mpeg_er.c
index 5eca834072..ada1a1692f 100644
--- a/libavcodec/mpeg_er.c
+++ b/libavcodec/mpeg_er.c
@@ -71,6 +71,7 @@ static void mpeg_er_decode_mb(void *opaque, int ref, int mv_dir, int mv_type,
s->mb_skipped = mb_skipped;
s->mb_x = mb_x;
s->mb_y = mb_y;
+ s->mcsel = 0;
memcpy(s->mv, mv, sizeof(*mv));
ff_init_block_index(s);
--
2.14.2
More information about the ffmpeg-devel
mailing list