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

[Pseudolocalization] Prevent out of bounds reads. #86827

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Jan 5, 2024

Fixes #86825

@bruvzg bruvzg added this to the 4.3 milestone Jan 5, 2024
@bruvzg bruvzg requested a review from a team as a code owner January 5, 2024 12:28
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Are there risks of this misuse of size vs length being more widespread in the codebase? Seems dangerous.

@akien-mga akien-mga added the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Jan 5, 2024
@bruvzg
Copy link
Member Author

bruvzg commented Jan 5, 2024

Are there risks of this misuse of size vs length being more widespread in the codebase? Seems dangerous.

Should not be too dangerous. There's always a terminating zero, so it won't crash. In most cases, it will just unnecessarily process or copy an extra zero char.

@akien-mga akien-mga merged commit 9bacd02 into godotengine:master Jan 8, 2024
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 4.2.2.

@akien-mga akien-mga removed the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Unicode parsing error" with double vowels pseudolocalization enabled
2 participants