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, 28 Oct 2018 00:22:42 +0000 (02:22 +0200)
commita594ce26ce3842a1a52558bcfc3f8f57fd5c6f45
tree9d0b275cc3e7223804c37591b5f1e3d68272ddbd
parent7068bcf58ad2ad8190ce343934503dd1f0b98ee4
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