1
0
mirror of https://github.com/golang/go synced 2024-10-04 14:31:21 -06:00
go/src/pkg/io
Rob Pike b0d2713b77 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
2012-01-21 09:46:59 -08:00
..
ioutil bytes.Buffer: restore panic on out-of-memory 2012-01-21 09:46:59 -08:00
io_test.go io: use error, add EOF, avoid os 2011-11-01 21:48:52 -04:00
io.go io: use error, add EOF, avoid os 2011-11-01 21:48:52 -04:00
Makefile build: no required environment variables 2010-08-18 10:08:49 -04:00
multi_test.go Add a []byte argument to hash.Hash to allow an allocation to be saved. 2011-12-01 12:35:37 -05:00
multi.go io: use error, add EOF, avoid os 2011-11-01 21:48:52 -04:00
pipe_test.go various: a grab-bag of time.Duration cleanups. 2011-12-13 10:42:56 +11:00
pipe.go io: use error, add EOF, avoid os 2011-11-01 21:48:52 -04:00