1
0
mirror of https://github.com/golang/go synced 2024-10-04 15:11:20 -06:00
go/src/bufio
Rob Pike 7b5af511a5 bufio: fix overflow calculation in Scan
I was being too clever, as usual. Write the obvious code to make sure
that when we grow the buffer we don't overflow.

Change-Id: I1641831177b0bb8a89ab6e9bcabccf6c2fcfe1d2
Reviewed-on: https://go-review.googlesource.com/14781
Reviewed-by: Minux Ma <minux@golang.org>
2015-09-20 04:46:08 +00:00
..
bufio_test.go bufio: add Reader.Discard 2015-01-07 06:37:57 +00:00
bufio.go bufio: Remove unneeded error initialization 2015-07-18 18:05:23 +00:00
example_test.go
export_test.go
scan_test.go bufio: allow Scanner to accept a user-provided buffer 2015-09-18 18:56:49 +00:00
scan.go bufio: fix overflow calculation in Scan 2015-09-20 04:46:08 +00:00