avcodec/huffyuvdec: Check that slice height is non negative.
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 6 Jan 2019 10:15:35 +0000 (11:15 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 6 Jan 2019 18:34:11 +0000 (19:34 +0100)
commit96e495082aedc4fcf444e2c7ef301867ba3e0b1f
treeee3c14253ecf4c7c0af796c2ad35f11a62445d85
parent4ec2daf0de1a30bdeffbeffefcb7211e96c04980
avcodec/huffyuvdec: Check that slice height is non negative.

Fixes: out of array access
Fixes: 12381/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HYMT_fuzzer-5705474280783872
Fixes: 12384/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HYMT_fuzzer-5725303345774592
Fixes: 12389/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HYMT_fuzzer-5704033050820608
Fixes: 12391/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HYMT_fuzzer-5707284146028544

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