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

bytes: Buffer.Reset() + .Write() yields incorrect contents #39163

Closed
networkimprov opened this issue May 20, 2020 · 1 comment
Closed

bytes: Buffer.Reset() + .Write() yields incorrect contents #39163

networkimprov opened this issue May 20, 2020 · 1 comment

Comments

@networkimprov
Copy link

networkimprov commented May 20, 2020

What version of Go are you using (go version)?

$ go version
1.14.2 playground

Does this issue reproduce with the latest release?

Yes

What did you do?

Call bytes.Buffer.Write(), then .Reset(), then .Write() again.

What did you expect to see?

Buffer has only data written after .Reset().

What did you see instead?

Buffer has mix of data from before and after .Reset().

@networkimprov networkimprov changed the title bytes: Buffer.Reset() failure bytes: Buffer.Reset() + .Write() yields incorrect contents May 20, 2020
@networkimprov
Copy link
Author

networkimprov commented May 20, 2020

Temporarily closed for further debugging... False alarm, sorry.

@golang golang locked and limited conversation to collaborators May 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants