mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
warp_gray cleared the old + warped region as one dense buffer spanning their union, so moving a selection/mask/channel far away (e.g. dx=1e5) allocated a ~1e5x1e5 buffer and hung the app. Write the two regions separately instead — Surface is tile-sparse, so a distant region costs only its own tiles. Found by the panic_hunt fuzz (now also catches hangs via a per-command thread timeout). Regression test covers a far transform. Co-Authored-By: Claude Opus 4.8 <[email protected]>