avcodec/jpeg2000: Fixes integer overflow in ff_jpeg2000_ceildivpow2()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 15 Jun 2017 21:26:18 +0000 (23:26 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 15 Jun 2017 22:21:30 +0000 (00:21 +0200)
commite3fadc57c5c170f31455abacbcbd67115d7321d7
tree7a7031dc0fa7a964c28cdca31ae9bc9641de4b4b
parent611b35627488a8d0763e75c25ee0875c5b7987dd
avcodec/jpeg2000: Fixes integer overflow in ff_jpeg2000_ceildivpow2()

Fixes: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself
Fixes: 2231/clusterfuzz-testcase-minimized-4565181982048256

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