Avoid integer overflow when accessing luts with very large values

This commit is contained in:
heckflosse 2019-06-09 14:36:38 +02:00
parent c0a033e717
commit 1e4f9ac248

View File

@ -444,7 +444,7 @@ public:
} }
idx = 0; idx = 0;
} else if (idx > maxs) { } else if (index > maxsf) {
if (clip & LUT_CLIP_ABOVE) { if (clip & LUT_CLIP_ABOVE) {
return data[upperBound]; return data[upperBound];
} }