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>
Fri, 26 Apr 2019 15:25:14 +0000 (17:25 +0200)
commitf857753f56f86046d454969e33ba85b3bac99be2
tree927bae055f1f91cef80a7c370e54e039c379847f
parent1e01f66822a0931b8182a0184b0335b18a129876
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>
libavcodec/gdv.c