avcodec/pixlet: fixes integer overflow in read_highpass()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 17 Aug 2017 01:54:56 +0000 (03:54 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Aug 2017 09:34:01 +0000 (11:34 +0200)
commitcadab5a2a74d715fc16325bd89f8b8091def1083
treea655eb0171a4ea30e3e8d5651f41664deed36394
parentb9f92093a10217b14d923220aaa186f41a0cf555
avcodec/pixlet: fixes integer overflow in read_highpass()

Fixes: runtime error: negation of -2147483648 cannot be represented in type 'int32_t' (aka 'int'); cast to an unsigned type to negate this value to itself
Fixes: 2879/clusterfuzz-testcase-minimized-6317542639403008

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