uclouvain/openjpeg

Integer-overflow · opj_t1_encode_cblk

dlemstra opened this issue · 0 comments

The https://github.com/ImageMagick project is using https://github.com/google/oss-fuzz to find bugs in our own library and in libraries that we use. The fuzzer found an issue on this line:

max = opj_int_max(max, -tmp);

With the following error message:

runtime error: negation of -2147483648 cannot be represented in type 'OPJ_INT32' (aka 'int'); cast to an unsigned type to negate this value to itself