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

Fix unicode length calculations in event strings #149

Merged
merged 1 commit into from
May 12, 2021

Conversation

sgnn7
Copy link
Contributor

@sgnn7 sgnn7 commented May 11, 2021

Old code calculated the length of header and message body sent to statsd
using codepoints instead of raw byte UTF-8 lengths. The new code now ensures
that both of those field lengths are properly calculated using the
expected encoding.

Fixes: #148

@sgnn7 sgnn7 added the bug label May 11, 2021
Old code calculated the length of header and message body sent to statsd
using codepoints instead of raw UTF-8 lengths. The new code now ensures
that both of those field lengths are properly calculated using the
expected encoding.
@sgnn7 sgnn7 force-pushed the sgnn7/fix-unicode-event-processing branch from be3c08a to d63ac45 Compare May 11, 2021 21:10
@sgnn7 sgnn7 requested a review from truthbk May 11, 2021 21:14
@sgnn7 sgnn7 merged commit a48939b into master May 12, 2021
@sgnn7 sgnn7 deleted the sgnn7/fix-unicode-event-processing branch May 12, 2021 13:57
@truthbk truthbk added this to the 2.13.0 milestone Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unicode event header/body lengths are not correctly calculated
2 participants