Files
photocraft/crates/engine
Dylan M. Taylor ac7eca536a security(engine): convert spelling offsets in one pass
The spelling list converted each misspelling's start and end byte offset
to a character offset with char_at, which recounts the text prefix from
the start every call. A layer with many short misspellings therefore
caused quadratic rescanning on the synchronous UI thread.

Collect the ascending offsets and map them to character offsets in a
single forward walk over the text. char_at is removed (byte_at still
handles the reverse direction in change()).

Finding: 392eb136-b836-4400-8ed7-f1e4549ff0ae (CWE-407)
2026-10-22 07:11:41 -04:00
..
2026-10-22 02:16:49 +00:00