diff options
| author | Rob Pike <r@golang.org> | 2015-09-19 11:39:22 -0700 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2015-09-20 04:46:08 +0000 |
| commit | 7b5af511a51e5ca4ed751c8ce4c8eb40f5292e35 (patch) | |
| tree | 33894e0ef6edbbac8dc3f59a608f3e500b0646d7 /src/encoding | |
| parent | e643dc79d4d9c9d6cd680351a8d3aab5de531903 (diff) | |
| download | go-7b5af511a51e5ca4ed751c8ce4c8eb40f5292e35.tar.xz | |
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>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions
