]> git.sesse.net Git - ffmpeg/commit
avcodec/adpcm: Fix overflow in FFABS() IMA_EA_EACS
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 6 Dec 2019 23:14:16 +0000 (00:14 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 11 Jan 2020 22:31:18 +0000 (23:31 +0100)
commit794352ae9d1cb32b4b9e45d3affb83763f4ee12e
tree36381eb304707b33c4dc52bcc95c5782e1501f9c
parent6a865cec5e7584ef476f394fc55c1fc91cec1a14
avcodec/adpcm: Fix overflow in FFABS() IMA_EA_EACS

Fixes: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself
Fixes: 19235/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ADPCM_IMA_EA_EACS_fuzzer-5680878952382464
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/adpcm.c