avcodec/qdmc: Fix integer overflows in PRNG
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 16 Jun 2019 13:53:27 +0000 (15:53 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commitd00e33ed3a2127901b622081b364580144be12c4
tree0c08ab943c9b7068780c135a8ecf0464efa871b8
parent9b8a58fa78062ddee07a54237c77dcdc6186aab1
avcodec/qdmc: Fix integer overflows in PRNG

Fixes: signed integer overflow: 214013 * 2531011 cannot be represented in type 'int'
Fixes: 15254/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_QDMC_fuzzer-5698137026461696

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