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>
Sun, 18 Nov 2018 01:20:44 +0000 (02:20 +0100)
commitec7cf0c74f75089617696f7f6e6787760997dcc0
tree411a20563c3a494187f305d1a30ce4b372e95332
parent6ebb8f5ab5663dc55f5fd8b66b54d30bab7b79f6
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>
(cherry picked from commit f457c0ad7f73e31e99761f2ad3738cf3b3c24ca0)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/diracdec.c