avcodec/diracdec: Fix integer overflow in global_mv()
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 22 May 2019 00:01:33 +0000 (02:01 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commit04c3e3d4e257a7e46e7e699f5d26f849837f907d
tree84c869975f08f202c74d4976d4088162c431543d
parenteed8561f7cb845aa6df8daf4abf1945be18a4930
avcodec/diracdec: Fix integer overflow in global_mv()

Fixes: signed integer overflow: 16384 * 196607 cannot be represented in type 'int'
Fixes: 14810/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5091232683917312

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