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:
parent
60406a82b4
commit
034ca9347e
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue