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>
Wed, 26 Jun 2019 19:25:56 +0000 (21:25 +0200)
commit2921b45a388a81968d946996bb32e72d7bb5d5b7
tree57cc3bae4bc0f4d086c15efccc6168ce34b7a5a4
parentd57f6606ebe166a428d939228d0d6490e3255ae1
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>
libavcodec/qdmc.c