avcodec/utils: Check ima wav duration for overflow
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 10 Apr 2021 18:32:55 +0000 (20:32 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Jun 2021 18:53:56 +0000 (20:53 +0200)
commit246b3d58a956d090b1438b005701608927aca681
treea254b9241f75b712c1881c1ceaa5aaf7f578c2be
parentf4c5abe2d011f645d12226ec660bf70d94c73e4f
avcodec/utils: Check ima wav duration for overflow

Fixes: signed integer overflow: 44331634 * 65 cannot be represented in type 'int'
Fixes: 32120/clusterfuzz-testcase-minimized-ffmpeg_dem_RSD_fuzzer-5760221223583744

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit f40e9b13554d88cbdd6cd2b4a3da2cbea9590f5d)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/utils.c