Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(19)

Issue 86590043: code review 86590043: bufio: fix potential endless loop in ReadByte (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by gri
Modified:
10 years, 1 month ago
Reviewers:
gobot, bradfitz
CC:
r, bradfitz, golang-codereviews
Visibility:
Public.

Description

bufio: fix potential endless loop in ReadByte Also: Simplify ReadSlice implementation and ensure that it doesn't call fill() with a full buffer (this caused a failure in net/textproto TestLargeReadMIMEHeader because fill() wasn't able to read more data). Fixes issue 7745.

Patch Set 1 #

Patch Set 2 : diff -r 55781108cefa https://code.google.com/p/go/ #

Patch Set 3 : diff -r 60c7a236d3bc https://code.google.com/p/go/ #

Total comments: 2

Patch Set 4 : diff -r 6b826a65a629 https://code.google.com/p/go/ #

Patch Set 5 : diff -r 6b826a65a629 https://code.google.com/p/go/ #

Patch Set 6 : diff -r 4b84ac898256 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -34 lines) Patch
M src/pkg/bufio/bufio.go View 1 2 3 4 9 chunks +50 lines, -34 lines 0 comments Download
M src/pkg/bufio/bufio_test.go View 1 2 chunks +29 lines, -0 lines 0 comments Download

Messages

Total messages: 8
gri
Hello r@golang.org, bradfitz@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
10 years, 1 month ago (2014-04-10 21:39:42 UTC) #1
gri
PS: This one passes all tests on my machine. On Thu, Apr 10, 2014 at ...
10 years, 1 month ago (2014-04-10 21:41:54 UTC) #2
bradfitz
Protip: run "go test -short std" before all "hg submits". :-) On Thu, Apr 10, ...
10 years, 1 month ago (2014-04-10 21:49:00 UTC) #3
bradfitz
LGTM https://codereview.appspot.com/86590043/diff/40001/src/pkg/bufio/bufio.go File src/pkg/bufio/bufio.go (right): https://codereview.appspot.com/86590043/diff/40001/src/pkg/bufio/bufio.go#newcode93 src/pkg/bufio/bufio.go:93: n, err := b.rd.Read(b.buf[b.w:]) before this, if len(b.buf[b.w:]) ...
10 years, 1 month ago (2014-04-10 21:50:07 UTC) #4
gri
https://codereview.appspot.com/86590043/diff/40001/src/pkg/bufio/bufio.go File src/pkg/bufio/bufio.go (right): https://codereview.appspot.com/86590043/diff/40001/src/pkg/bufio/bufio.go#newcode93 src/pkg/bufio/bufio.go:93: n, err := b.rd.Read(b.buf[b.w:]) On 2014/04/10 21:50:07, bradfitz wrote: ...
10 years, 1 month ago (2014-04-10 23:14:26 UTC) #5
bradfitz
ship it.
10 years, 1 month ago (2014-04-10 23:18:51 UTC) #6
gri
*** Submitted as https://code.google.com/p/go/source/detail?r=8e553855d1a3 *** bufio: fix potential endless loop in ReadByte Also: Simplify ReadSlice ...
10 years, 1 month ago (2014-04-11 04:46:05 UTC) #7
gobot
10 years, 1 month ago (2014-04-11 04:57:05 UTC) #8
Message was sent while issue was closed.
This CL appears to have broken the freebsd-amd64 builder.
See http://build.golang.org/log/3e2ee12ab1ca1eca8cdb59c7c443ac6a3733c576
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b