From 496ff4877b1affbf5b30fd867c7583a688335b0d Mon Sep 17 00:00:00 2001 From: Paul Dreik Date: Thu, 25 Aug 2022 08:44:28 +0200 Subject: [PATCH] add note on illegal shift in color.c color_cmyk_to_rgb --- src/bin/common/color.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/common/color.c b/src/bin/common/color.c index 27f15f13..e16464e8 100644 --- a/src/bin/common/color.c +++ b/src/bin/common/color.c @@ -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 (