XGameUI: maxTextLength=0 does not apply the 1024-character default #248
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#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?
@Bennet0k on GitHub · 2026-11-24 22:59 UTC · original
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.