avcodec/diracdec: Check slice numbers for overflows in relation to picture dimensions
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 22 Jul 2018 19:26:24 +0000 (21:26 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 28 Jul 2018 12:35:50 +0000 (14:35 +0200)
commitf457c0ad7f73e31e99761f2ad3738cf3b3c24ca0
tree1ead3bf11198746fcdc42ed7675def53fed6a2d2
parent462d1be6dec5ff4768be8c202f359cbf037db3c6
avcodec/diracdec: Check slice numbers for overflows in relation to picture dimensions

Fixes: signed integer overflow: 88 * 33685506 cannot be represented in type 'int'
Fixes: 9433/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5725943535501312

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