1.
Utilities/gdcmjpeg/jccolor.c:99:43: warning: iteration 55823u invokes undefined behavior [-Waggressive-loop-optimizations]
Source code is
rgb_ycc_tab[i+G_Y_OFF] = FIX(0.58700) * i;
I suspect you've probably run off the end of the array.
2.
Utilities/gdcmjpeg/jdmerge.c:108:34: warning: iteration 9396u invokes undefined behavior [-Waggressive-loop-optimizations]
Source code is
upsample->Cr_r_tab[i] = (int) RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS);
postponed
Hi, warning 1 seems legitimate.
When BITS_IN_JSAMPLE is 16 then MAXJSAMPLE is 65535 and therefore after i > 55822 the result of FIX(0.58700) * i cannot be stored in a 32-bit signed integer.
It would need to be unsigned at least.
This looks like the same as this one (patch included there): https://support.dcmtk.org/redmine/issues/759