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>
Sat, 28 Jul 2018 12:35:50 +0000 (14:35 +0200)
commit51290406461ed40b70e0e05b389a461a283f3367
tree750fabe234e354e6dbcabe7b39a5abe6948422d7
parented647ab79f9a54d8d3a8e345f6a1643b60b849f4
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>
libavcodec/diracdec.c