avformat/rpl: The associative law doesnt hold for signed integers in C
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 10 Jun 2021 18:35:43 +0000 (20:35 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 12 Jun 2021 12:22:42 +0000 (14:22 +0200)
commit480f11bdd713c15e4964093be7ef0adf5b619cc1
treecd1940a8eea3eaa9e8850b6ba2b2e827e8516169
parentff56c139e07a4de2803b974b6595f6b71fbf53bd
avformat/rpl: The associative law doesnt hold for signed integers in C

Add () to avoid undefined behavior
Fixes: signed integer overflow: 9223372036854775790 + 57 cannot be represented in type 'long'
Fixes: 34983/clusterfuzz-testcase-minimized-ffmpeg_dem_RPL_fuzzer-5765822923538432

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/rpl.c