Aseprite behaves abnormally on images with canvas size larger than 32,767 pixels in width/height

Specs:
Aseprite 1.3.7-x64
Windows 10 22H2 Pro 19045.4651 (also happens on Windows 11)
32GB RAM (2x16GB)
Intel Xeon e5-1620 v3 @ 3.5GHz
NVIDIA Geforce RTX 2060 SUPER

Description:
Certain tools misbehave on images with a height or width value higher than the 16-bit integer limit (32767). The tools tested were the Marquee tools, wand tool, and bucket tool. Other tools work fine, and normal selection and dragging works fine with the Marquee tools. Everything works fine above pixel 32766.

Problems
Using the wand tool or bucket/gradient tools on such image crashes the app.
Selecting more than 32767 in width or height with the marquee tools, then dragging it deletes the content instead of moving it.

How to Recreate

  1. Open Aseprite (latest stable release).
  2. Create a new 1x32768 image.
  3. Left-click on the canvas with the bucket tool, OR
  4. Select all with CTRL+A and drag the selection.

Expected/Actual
Aseprite needs to handle things with more than 16-bits, since I’m using a high-end Windows desktop, but in the end, the app just crashes when working with extremely large spritesheets, for example.