1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed a potential overflow when dealing with large images

This commit is contained in:
Tom Poole 2020-03-27 08:51:52 +00:00
parent 60406a82b4
commit 034ca9347e

View file

@ -663,7 +663,7 @@ void Image::moveImageSection (int dx, int dy,
auto dst = destData.getPixelPointer (dx - minX, dy - minY);
auto src = destData.getPixelPointer (sx - minX, sy - minY);
auto lineSize = (size_t) (destData.pixelStride * w);
auto lineSize = (size_t) destData.pixelStride * (size_t) w;
if (dy > sy)
{