avcodec/huffyuvdec: Check that slices do not exceed frame height
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 6 Jan 2019 11:17:06 +0000 (12:17 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 6 Jan 2019 18:34:11 +0000 (19:34 +0100)
commitab160efa2850715de32e24fed846a0f6ef7244ab
tree6b9e63fd32fffa468dc078f95919dd1dc6af6ead
parent96e495082aedc4fcf444e2c7ef301867ba3e0b1f
avcodec/huffyuvdec: Check that slices do not exceed frame height

Fixes: Out of array access
Fixes: 12367/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HYMT_fuzzer-5662313959391232
Fixes: 12370/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HYMT_fuzzer-5670984961490944
Fixes: 12376/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HYMT_fuzzer-5644026183680000
Fixes: 12383/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HYMT_fuzzer-5722087214284800
Fixes: 12390/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HYMT_fuzzer-5696653095337984
Fixes: 12408/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HYMT_fuzzer-5729689379799040

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