Scale and rotate large image causes drawing buffer corrupted
GIMP version: 2.10.20
Operating System: Linux 5.7.12
Package: Compiled from source
Description of the bug
Scale (800%) and rotate the viewer for large image (10000x10000) causes drawing buffer corrupted, see the screenshot. This bug only appears when "Show layer boundary" is enabled.
Is the bug reproducible? [Always]
- Remove ~/.config/GIMP (Ensure default settings are used)
- Change "Maximum image size" to 10G in Preferences
- Create a 10000x10000 image
- Scale the viewer to 800%
- Hold shift and space, then use the mouse to rotate the viewer to some point
Expected result: The canvas should be white empty
Actual result: Some yello black line and dots appear like noise
Maybe it's an integer overflow issue? (10000*8)^2 will greater than 0xffffffff.