avcodec/alsdec: Fix integer overflow in decode_var_block_data()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 18 Aug 2019 23:30:53 +0000 (01:30 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 20 Aug 2019 23:21:27 +0000 (01:21 +0200)
commit661a9b274b0181b2e36ff21fd13840f35992bea6
tree818a4e84e19ffc811879b213078d344246a84790
parentd7866bf527a94702e0afd5d7c5fc75ab64604adf
avcodec/alsdec: Fix integer overflow in decode_var_block_data()

Fixes: signed integer overflow: 1927975249 - -514719744 cannot be represented in type 'int'
Fixes: 16413/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-5651206856245248

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Thilo Borgmann <thilo.borgmann@mail.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/alsdec.c