avcodec/alsdec: Fix 2 integer overflows
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 6 Jul 2019 21:20:30 +0000 (23:20 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 21 Jul 2019 09:26:36 +0000 (11:26 +0200)
commit9cd0d94f59d05e7bfaae9690e827752e7717eda3
treefdd8f4d31336630f75e8f3944dbc0064762de494
parent240bf0e5960fca424e43b7ab1048897fdecabf26
avcodec/alsdec: Fix 2 integer overflows

Fixes: signed integer overflow: 1270564968 + 904828220 cannot be represented in type 'int'
Fixes: 15402/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-5755426823471104

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