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 SegmentedByteString substring write #778

Merged

Conversation

bnorm
Copy link
Collaborator

@bnorm bnorm commented Sep 28, 2020

Only occurs when performing a partial write of a SegmentedByteString into a Buffer. Partial write of a ByteString was added in 2.4.1 by #651 (yep, my bad 😬 ).

@swankjesse swankjesse merged commit 6344cc1 into square:master Oct 4, 2020
@swankjesse
Copy link
Collaborator

Confirmed locally ’cause the multiplatform build was flaking on CI.

@swankjesse
Copy link
Collaborator

Thanks @bnorm!

@bnorm bnorm deleted the bnorm.0928.segmented_substring_write branch October 4, 2020 02:26
15characterlimi pushed a commit to 15characterlimi/okio that referenced this pull request Nov 9, 2020
* Write unit tests to expose bug

* Fix SegmentedByteString substring write
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