]> git.sesse.net Git - ffmpeg/commit
avutil/mathematics: Fix undefined negation in av_compare_ts()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 31 Jan 2021 14:51:40 +0000 (15:51 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 10 Feb 2021 11:28:29 +0000 (12:28 +0100)
commit7a239526146934a50c1cebd25e079a1027db545c
tree391d98dd77bfdbbe7902afb9844a55722b965a31
parent1bda9bb68a1e273816c2c640e74e6de4f5632c33
avutil/mathematics: Fix undefined negation in av_compare_ts()

Fixes: negation of -9223372036854775808 cannot be represented in type 'int64_t' (aka 'long'); cast to an unsigned type to negate this value to itself
Fixes: 29437/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-4748510022991872
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavutil/mathematics.c