Stop recursive flood fill at depth of 20K

Attempt to void crashing (by blowing up the stack) when doing
a flood-fill of a complicated shape on a large canvas
(e.g., `tuxpaint --3000x2000` with `starters/mosaic.svg`).
This commit is contained in:
Bill Kendrick 2021-11-15 20:40:26 -08:00
parent b029ceeae7
commit 1ff75a5c0c
2 changed files with 15 additions and 6 deletions

View file

@ -192,6 +192,11 @@ $Id$
(e.g., when returning from the "Open" dialog).
(Closes https://sourceforge.net/p/tuxpaint/feature-requests/186/)
* Attempt to void crashing (by blowing up the stack) when doing
a flood-fill of a complicated shape on a large canvas
(e.g., `tuxpaint --3000x2000` with `starters/mosaic.svg`).
(h/t Yang for reporting, and Pere for confirming)
* Ports & Building
----------------
* Fix compilation error on Linux with HOST environment variable set.