avcodec/vmdaudio: Check block_align more
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 6 Jan 2020 00:38:21 +0000 (01:38 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 7 Jan 2020 01:49:54 +0000 (02:49 +0100)
commit06f6857b54a7fbbd087b0803f75bed44abed50d9
treedcb097915d81aa23ba5ec692dffe1f435e435891
parentd31a1266a789584d7de4a6c2f5d7f862003ad7ad
avcodec/vmdaudio: Check block_align more

Fixes: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int'
Fixes: 19788/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VMDAUDIO_fuzzer-5743379690553344

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