interpolateBadPixelsXtrans() : fix oob access
This commit is contained in:
parent
3b19b9f55b
commit
c0a033e717
@ -1298,6 +1298,7 @@ int RawImageSource::interpolateBadPixelsXtrans( PixelsMap &bitmapBads )
|
||||
for(dx = -2, dy = 0; dx <= 2 && !distance2PixelFound; dx += 4)
|
||||
if(ri->XTRANSFC(row, col + dx) == pixelColor) {
|
||||
distance2PixelFound = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if(!distance2PixelFound)
|
||||
@ -1306,6 +1307,7 @@ int RawImageSource::interpolateBadPixelsXtrans( PixelsMap &bitmapBads )
|
||||
for(dx = 0, dy = -2; dy <= 2 && !distance2PixelFound; dy += 4)
|
||||
if(ri->XTRANSFC(row + dy, col) == pixelColor) {
|
||||
distance2PixelFound = true;
|
||||
break;
|
||||
}
|
||||
|
||||
// calculate the value of its virtual counterpart (marked with a V in above examples)
|
||||
|
Loading…
x
Reference in New Issue
Block a user