libavcodec/mvha: Check height before applying median predictor
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 9 Feb 2020 14:02:45 +0000 (15:02 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 9 Feb 2020 22:33:18 +0000 (23:33 +0100)
commitc9c958051cc91604b9427229d648e65e782476d4
tree34bc75db5528d0e8afb083abb023985be828d3f7
parentb0eec1391e1daeade456698b1aee9b2d43a6f538
libavcodec/mvha: Check height before applying median predictor

Fixes: out of array read
Fixes: 20495/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MVHA_fuzzer-5711179129552896

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/mvha.c