-
Notifications
You must be signed in to change notification settings - Fork 18k
bufio: Writer.ReadFrom ignores the stored error #35194
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
Comments
This definitely looks like a bug. It also calls the underlying ReadFrom without persisting the error. |
Change https://golang.org/cl/203999 mentions this issue: |
Change https://golang.org/cl/204000 mentions this issue: |
Updates #35194 Change-Id: Ib854bc6250ddeb606d6ff6240179e23b98e4ac62 Reviewed-on: https://go-review.googlesource.com/c/go/+/203999 Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Will it be backported to 1.13 and 1.12 ? |
If it's not a regression from 1.11 and not a security issue, then a backport seems doubtful. (Do we know whether it's a regression from 1.11?) |
https://play.golang.org/p/--WBbDHbIS9
Then I would expect
ReadFrom
to fail and theBuffered()
count not to grow.Isn't
ReadFrom
a write?This seems unlikely to have bad consequences, but I don't think it's a valid reason for the documentation to be incorrect about corner cases.
The text was updated successfully, but these errors were encountered: