avcodec/vc1dec: Check field_mode for sprites
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 8 Dec 2019 19:18:07 +0000 (20:18 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 11 Jan 2020 22:31:18 +0000 (23:31 +0100)
commit32fb9198360402941e49aa878b9d33737b654f62
tree83f3c50c266c43318c264b23cd45bb904071f7ee
parentc56a52a82c0a4039e606e82b948a8abfe417f35f
avcodec/vc1dec: Check field_mode for sprites

Fixes: Out of array read
Fixes: 19263/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VC1IMAGE_fuzzer-5389219325542400

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vc1dec.c