Avoid integer overflow when accessing luts with very large values
This commit is contained in:
parent
c0a033e717
commit
1e4f9ac248
@ -444,7 +444,7 @@ public:
|
||||
}
|
||||
|
||||
idx = 0;
|
||||
} else if (idx > maxs) {
|
||||
} else if (index > maxsf) {
|
||||
if (clip & LUT_CLIP_ABOVE) {
|
||||
return data[upperBound];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user