avformat/rmdec: Use 64bit for intermediate for DEINT_ID_INT4
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 15 Apr 2021 20:44:19 +0000 (22:44 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Oct 2021 16:34:49 +0000 (18:34 +0200)
commit6715ea85c08e41eb5e29690b0d8eeeafd01645d8
treee117ebf8c322405c3f75c40b54d211ba137ac367
parentcbe954f578a19afc11a440fbd379fa8f6fe57b1c
avformat/rmdec: Use 64bit for intermediate for DEINT_ID_INT4

Fixes: runtime error: signed integer overflow: 65312 * 65535 cannot be represented in type 'int'
Fixes: 32832/clusterfuzz-testcase-minimized-ffmpeg_dem_RM_fuzzer-4817710040088576

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 e2c2872393f25253aa40861a9707934c4b83a3af)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/rmdec.c