]> git.sesse.net Git - ffmpeg/commit
avcodec/apedec: Use FFABSU() in do_apply_filter()
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 20 Jan 2021 23:07:46 +0000 (00:07 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 26 Jan 2021 17:37:12 +0000 (18:37 +0100)
commit59a6becf8ecb1ea25faaeaaf45f4d28de39606eb
tree1b1b2ab07c726476ce070735c61db95337a8f2e6
parent5dd95670808915b391348624d3f9860e021a81a2
avcodec/apedec: Use FFABSU() in do_apply_filter()

Fixes: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself
Fixes: 29053/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-4814432697974784
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/apedec.c