avcodec/vmdaudio: Check chunk counts to avoid integer overflow
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 8 Nov 2019 16:28:27 +0000 (17:28 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 1 Dec 2019 16:17:04 +0000 (17:17 +0100)
commit47d963335eb2c36c0e6615d7971c762458e813dd
tree777a0c1ff0de2122c8ddefdd3ccabead78e4d7bb
parent13816a1d085fdb6598ea6dc92ed3a1e6aff0cc1f
avcodec/vmdaudio: Check chunk counts to avoid integer overflow

Fixes: signed integer overflow: 4 * 538976288 cannot be represented in type 'int'
Fixes: 18622/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VMDAUDIO_fuzzer-5092166174507008

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