avcodec/dxtory: Check slice sizes before allocating image
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 16 Mar 2019 10:02:48 +0000 (11:02 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 25 Mar 2019 12:20:29 +0000 (13:20 +0100)
commitd92034a06aadd057b3d3b08a1bd3cb8b1aab0898
tree5250970c755f8e0a5e13573a3726aa51c33e664e
parent1223696c725a8ea7e80498e6ccfab37eea179b76
avcodec/dxtory: Check slice sizes before allocating image

Fixes: Timeout (26sec -> 2sec)
Fixes: 13612/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DXTORY_fuzzer-5676845977042944

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dxtory.c