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

Ensure s3 chunk read accounts for utf8 length #296

Merged
merged 2 commits into from
Oct 26, 2020
Merged

Ensure s3 chunk read accounts for utf8 length #296

merged 2 commits into from
Oct 26, 2020

Conversation

czgu
Copy link
Collaborator

@czgu czgu commented Oct 26, 2020

The s3 read is chunked by some number of bytes. Since utf8 characters are dynamically lengthed, we would have a s3 chunk that starts and ends with an invalid utf8 character. The issue is resolved by always breaking a s3 chunk into a valid part and an invalid part, and then merge the invalid part to the next chunk.

@czgu czgu requested a review from meowcodes October 26, 2020 18:43
@czgu czgu merged commit c043438 into master Oct 26, 2020
@czgu czgu deleted the s3utf8fix branch October 26, 2020 19:10
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