avformat/msf: Check that channels doesnt overflow during extradata construction
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 25 Apr 2021 17:54:19 +0000 (19:54 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Jun 2021 16:58:25 +0000 (18:58 +0200)
commita1a277926b49dad60d9e78c6c7a8c6b5d0d6d7c9
tree7431cfea5ebee1faa8f858e8774876c01c2f49b6
parente7a990164f67108e99ec5adb8b2d636cd4147715
avformat/msf: Check that channels doesnt overflow during extradata construction

Fixes: signed integer overflow: 2048 * 1122336 cannot be represented in type 'int'
Fixes: 29102/clusterfuzz-testcase-minimized-ffmpeg_dem_MSF_fuzzer-6726959600107520

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