]> Cypherpunks repositories - gostls13.git/commit
bytes.Buffer: restore panic on out-of-memory
authorRob Pike <r@golang.org>
Sat, 21 Jan 2012 17:46:59 +0000 (09:46 -0800)
committerRob Pike <r@golang.org>
Sat, 21 Jan 2012 17:46:59 +0000 (09:46 -0800)
commitb0d2713b77f80986f688d18bd0df03ed56d6e7b5
tree9a2f0bffc87e5fd00c84acbd6470b396811a0670
parent4d3b9d97573082152894847f5040876f8febc70f
bytes.Buffer: restore panic on out-of-memory
Make the panic detectable, and use that in ioutil.ReadFile to
give an error if the file is too big.

R=golang-dev, minux.ma, bradfitz
CC=golang-dev
https://golang.org/cl/5563045
src/pkg/bytes/buffer.go
src/pkg/bytes/buffer_test.go
src/pkg/io/ioutil/ioutil.go