A couple of corner cases in imageProcessing resulted into ArrayIndexOutOfBounds exception.
One was with scaling math resulting into trying to access pixel at array.length.
A second one was involving mosaic after band select where PlanarImage getTile/getData code was dealing with pixelStride and scanlineStride in different ways even within the same image operation, resulting into trying to access underlying databuffer at positions out of bounds due to bad pixelStride and scanlineStride being used.
A couple of corner cases in imageProcessing resulted into ArrayIndexOutOfBounds exception.
One was with scaling math resulting into trying to access pixel at array.length. A second one was involving mosaic after band select where PlanarImage getTile/getData code was dealing with pixelStride and scanlineStride in different ways even within the same image operation, resulting into trying to access underlying databuffer at positions out of bounds due to bad pixelStride and scanlineStride being used.