XGameUI: maxTextLength=0 does not apply the 1024-character default #248
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from fxceless/victory-fork. Originally posted by Bennet0k on 2026-11-24T22:59:57Z.
Source
The GDK documentation defines
maxTextLength=0as a limit of 1024. The current limit helper returns all 1025 characters for a 1025-ASCII-character input with that argument. Reproduced by executing the Rust helper from2119b0e. The dialog itself was not exercised in this check.Proposed fix. Normalize zero to 1024 at entry and pass the effective limit to both the input control and result trimming. Add tests for zero and an explicit positive limit.
Found in an AI-assisted audit of
2119b0e.