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>
Tue, 5 Oct 2021 21:19:39 +0000 (23:19 +0200)
commit598d3614fd19a23d5b4f8ce2b179355a1cff3e5c
treee52e1f9e4e206c5892f2c1fc4840e6f072ca6b85
parent09e0a122028d5bad1236fec06a736de2ceee1eed
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