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

Michael Niedermayer michael at niedermayer.cc
Wed May 13 02:07:37 EEST 2020


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_AV_CODEC_ID_ADPCM_THP_fuzzer-5646302555930624
> 
> Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
>  libavcodec/adpcm.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

will apply


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Democracy is the form of government in which you can choose your dictator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200513/aaa25b3e/attachment.sig>


More information about the ffmpeg-devel mailing list