Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit the length of game names to 256 characters #46

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

Dunedan
Copy link
Collaborator

@Dunedan Dunedan commented Oct 8, 2024

This limits the maximum length of game names to 256 characters. Longer game names will be simply cut to the first 256 characters. While Pyrogenesis already contains a check to limit the game name to 256 characters, this is to counter modified clients trying to circumvent this limitation.

Fixes https://gitea.wildfiregames.com/0ad/0ad/issues/3651

This limits the maximum length of game names to 256 characters. Longer
game names will be simply cut to the first 256 characters. While
Pyrogenesis already contains a check to limit the game name to 256
characters, this is to counter modified clients trying to circumvent
this limitation.

Fixes https://gitea.wildfiregames.com/0ad/0ad/issues/3651
@rendello
Copy link

Property-Based Testing used in the wild 😄 I'm a big fan of Hypothesis, cool to see it used here.

@Dunedan Dunedan merged commit 3e93ee6 into 0ad:master Oct 23, 2024
3 checks passed
@Dunedan Dunedan deleted the limit-game-name-length branch October 23, 2024 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants