avcodec/gdv: Check input palette size before rescale()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 25 Apr 2019 17:18:08 +0000 (19:18 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commit08d736d5363e1ad9210f2067de3bedc9a9229b45
tree1772c4cbef8b262c79f8b434a34c08e5d542efaa
parent3f950b866a839041d587bd5b91d25a35d85408b2
avcodec/gdv: Check input palette size before rescale()

Fixes: Timeout (22sec -> 11sec)
Fixes: 13576/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_GDV_fuzzer-5681024577568768

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>
(cherry picked from commit f857753f56f86046d454969e33ba85b3bac99be2)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/gdv.c