avcodec/cinepak: Check slice_size before allocating image
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 27 Apr 2019 21:37:26 +0000 (23:37 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 30 Apr 2019 19:24:04 +0000 (21:24 +0200)
commitb606493717db6424d693e1a944f51171e9e72905
tree0ecfeb2219458c62d3709fbf192bdd1cab8cd231
parent5a39b797ac46bbf992e76ea363f2c5fab7ebc29f
avcodec/cinepak: Check slice_size before allocating image

Fixes: Timeout (16sec -> 125msec)
Fixes: 14283/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CINEPAK_fuzzer-5742851457024000

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/cinepak.c