Re: [FFmpeg-devel] [PATCH 2/2] avcodec/adpcm: Fix integer overflow in ADPCM THP

2020-05-12 Thread Michael Niedermayer
On Wed, Feb 12, 2020 at 11:03:19PM +0100, Michael Niedermayer wrote: > The reference (thp.txt) uses floats so wrap around would seem incorrect. > > Fixes: signed integer overflow: 1073741824 + 1073741824 cannot be represented > in type 'int' > Fixes: > 20658/clusterfuzz-testcase-minimized-ffmpeg

[FFmpeg-devel] [PATCH 2/2] avcodec/adpcm: Fix integer overflow in ADPCM THP

2020-02-12 Thread Michael Niedermayer
The reference (thp.txt) uses floats so wrap around would seem incorrect. Fixes: signed integer overflow: 1073741824 + 1073741824 cannot be represented in type 'int' Fixes: 20658/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ADPCM_THP_fuzzer-5646302555930624 Found-by: continuous fuzzing proc