avcodec/wmalosslessdec: fix overflow with pred in revert_cdlms
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 27 Jun 2020 22:10:19 +0000 (00:10 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 30 Jun 2020 18:35:23 +0000 (20:35 +0200)
commit21598d711d894081d0566282473044ba4f378f33
treef32d4c0bb509713d15c29ce2c2d311ce3f2ac93d
parent579ac96a0422be18a10277aa6e8dd26207dc4d40
avcodec/wmalosslessdec: fix overflow with pred in revert_cdlms

Fixes: signed integer overflow: 2048 + 2147483646 cannot be represented in type 'int'
Fixes: 23538/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMALOSSLESS_fuzzer-5227567073460224

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/wmalosslessdec.c