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

[2.x] Fix multi byte strings in history encryption + test #2030

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

joetannenbaum
Copy link
Contributor

Fixes the buffer size to account for multi-byte characters when encrypting history.

Fixes #2028

@RobertBoes
Copy link
Contributor

As @buhrmi mentioned in his PR, is it really needed to take up 3 bytes for all characters, even if the content does not contain multibyte characters?

@joetannenbaum
Copy link
Contributor Author

We allot for the maximum (3x the characters) but only encode what we've written.

@reinink reinink merged commit 45a987d into master Oct 18, 2024
8 checks passed
@reinink reinink deleted the history-encryption-multi-byte branch October 18, 2024 01:15
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.

History encryption breaks if the data contains emojis
3 participants