add note on illegal shift in color.c color_cmyk_to_rgb

This commit is contained in:
Paul Dreik 2022-08-25 08:44:28 +02:00
parent 4f4cf2ee8c
commit 496ff4877b
1 changed files with 1 additions and 0 deletions

View File

@ -1072,6 +1072,7 @@ void color_esycc_to_rgb(opj_image_t *image)
int y, cb, cr, sign1, sign2, val;
unsigned int w, h, max, i;
int flip_value = (1 << (image->comps[0].prec - 1));
// runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
int max_value = (1 << image->comps[0].prec) - 1;
if (