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

Issue 11801043: code review 11801043: bufio: check buffer availability before reading in ReadFrom (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by adg
Modified:
10 years, 9 months ago
Reviewers:
dfc, bradfitz
CC:
golang-dev, bradfitz
Visibility:
Public.

Description

bufio: check buffer availability before reading in ReadFrom Fixes issue 5947.

Patch Set 1 #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -6 lines) Patch
M src/pkg/bufio/bufio.go View 1 2 1 chunk +11 lines, -6 lines 0 comments Download
M src/pkg/bufio/bufio_test.go View 1 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 9
adg
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 9 months ago (2013-07-25 00:41:22 UTC) #1
bradfitz
LGTM but this does change behavior mildly, probably in an unimportant way: Before, a ReadFrom ...
10 years, 9 months ago (2013-07-25 00:53:07 UTC) #2
adg
It's not behavior that should be relied upon (although our tests did), but it's easy ...
10 years, 9 months ago (2013-07-25 00:58:44 UTC) #3
bradfitz
LGTM On Jul 24, 2013 5:58 PM, "Andrew Gerrand" <adg@golang.org> wrote: > It's not behavior ...
10 years, 9 months ago (2013-07-25 01:27:30 UTC) #4
adg
*** Submitted as https://code.google.com/p/go/source/detail?r=3ffbc06b4874 *** bufio: check buffer availability before reading in ReadFrom Fixes issue ...
10 years, 9 months ago (2013-07-25 01:29:19 UTC) #5
dfc
On 2013/07/25 01:29:19, adg wrote: > *** Submitted as https://code.google.com/p/go/source/detail?r=3ffbc06b4874 *** > > bufio: check ...
10 years, 9 months ago (2013-07-25 01:38:42 UTC) #6
dfc
darwin/amd64 is producing completely nonsensical results. (~/go/src/pkg/bufio) % ./bufio.golden -test.run=X -test.bench=. > old.txt && ./bufio.test ...
10 years, 9 months ago (2013-07-25 01:44:15 UTC) #7
adg
They're just really jittery benchmarks. The wildest fluctuations you're seeing are in Reader benchmarks anyway, ...
10 years, 9 months ago (2013-07-25 01:47:16 UTC) #8
dfc
10 years, 9 months ago (2013-07-25 02:03:00 UTC) #9
ok, thanks for confirming, i'll stand down from DEFCON 1

On Thu, Jul 25, 2013 at 11:46 AM, Andrew Gerrand <adg@golang.org> wrote:
> They're just really jittery benchmarks.
>
> The wildest fluctuations you're seeing are in Reader benchmarks anyway, and
> this change only affects the Writer.
Sign in to reply to this message.

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