avcodec/huffyuvdec: Check vertical subsampling in hymt
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 3 Jul 2019 22:16:49 +0000 (00:16 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 13 Jul 2019 12:42:57 +0000 (14:42 +0200)
commit9ffa32b81bede1dbb167dfceb48fe605b27a0890
tree2b4c3e497053ac3f475a5fd4524cbfb516262ff9
parent6aaa01afe4fb774d0767684aa00f075b0ee5fca6
avcodec/huffyuvdec: Check vertical subsampling in hymt

Fixes: out of array access
Fixes: 15484/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HYMT_fuzzer-5765377054736384
Fixes: 15559/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HYMT_fuzzer-5710295743332352

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/huffyuvdec.c