]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.1] bufio: check buffer availability before reading in ReadFrom
authorAndrew Gerrand <adg@golang.org>
Mon, 29 Jul 2013 08:00:58 +0000 (18:00 +1000)
committerAndrew Gerrand <adg@golang.org>
Mon, 29 Jul 2013 08:00:58 +0000 (18:00 +1000)
commit018854d24aee8615c62c1126af71e2b6cccd0b05
treec97980e21df259b17e1e6192e99ea2988cf3e5ab
parent2041d55aac66d54765d2a4cfd267986c8f6d7c2a
[release-branch.go1.1] bufio: check buffer availability before reading in ReadFrom

This change was applied by hand, as bufio has seen some refactoring
since 1.1 was branched. The only difference between this and the
original patch is the offset of the change, and s/flush/Flush/.

««« CL 11801043 / 3ffbc06b4874
bufio: check buffer availability before reading in ReadFrom

Fixes  issue 5947 .

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/11801043
»»»

Update #5928

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/12002043
src/pkg/bufio/bufio.go
src/pkg/bufio/bufio_test.go