avcodec/diracdec: Prevent integer overflow in intermediate in global_mv()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 22 Jul 2018 16:58:34 +0000 (18:58 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commit057cfa4200e4d35c89f091d932906fc75945a5dd
treeb94ed4cc343338986125a143747bf972e26e98ff
parentd7d54f3fd5a68d6bcc38ff698d1d87fdbf0358aa
avcodec/diracdec: Prevent integer overflow in intermediate in global_mv()

Fixes: signed integer overflow: -393471 * 5460 cannot be represented in type 'int'
Fixes: 8890/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-6299775379963904

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 51290406461ed40b70e0e05b389a461a283f3367)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/diracdec.c