avcodec/apedec: make left/right unsigned to avoid undefined behavior
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 2 Jul 2019 10:13:19 +0000 (12:13 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 4 Aug 2019 19:16:28 +0000 (21:16 +0200)
commitf30d67341e19b8ad1e06afb915e70733342293c7
tree00f8d4fcf5c47e00570a0f746eea8f9227584bc4
parenta33fd082661faa0a6eda7a4ede722fdb865ddc8b
avcodec/apedec: make left/right unsigned to avoid undefined behavior

Fixes: signed integer overflow: 755176387 + 1515360583 cannot be represented in type 'int'
Fixes: 15506/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5706859232624640

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit bf778af1493b0814696307432763246fb53c75e7)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/apedec.c