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

Save binary ProjectSettings key length properly #49649

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

timothyqiu
Copy link
Member

This fixes #49646, cherry-pickable to 3.x.

When saving binary ProjectSettings, key's string data field saves UTF-8 data, but the size field uses character length instead of UTF-8 length. This PR uses store_pascal_string directly, as it stores exactly the UTF-8 data length + data combo.

@timothyqiu timothyqiu requested a review from a team as a code owner June 16, 2021 08:41
@akien-mga akien-mga added bug cherrypick:3.3 cherrypick:3.x Considered for cherry-picking into a future 3.x release topic:core labels Jun 16, 2021
@akien-mga akien-mga added this to the 4.0 milestone Jun 16, 2021
@akien-mga akien-mga merged commit 0cca7bb into godotengine:master Jun 16, 2021
@akien-mga
Copy link
Member

Thanks!

@timothyqiu timothyqiu deleted the project-settings-key branch June 16, 2021 10:23
@akien-mga
Copy link
Member

Cherry-picked for 3.4.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Jun 17, 2021
@akien-mga
Copy link
Member

Cherry-picked for 3.3.3.

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.

Issues parsing ProjectSettings with keys in Chinese
3 participants