diff options
author | Rob Pike <r@golang.org> | 2014-11-06 09:57:46 +1100 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2014-11-06 09:57:46 +1100 |
commit | a374d54b02eac896dbf836d4b2dc878bdf7ea755 (patch) | |
tree | 3b46e25787b5dd0a8bc6b48386c8e43c818e7d2f /doc | |
parent | 9d825d7306e349e99c31acfb02ae06925040fa5b (diff) | |
download | go-a374d54b02eac896dbf836d4b2dc878bdf7ea755.tar.gz |
bufio: don't loop generating empty tokens
The new rules for split functions mean that we are exposed
to the common bug of a function that loops forever at EOF.
Pick these off by shutting down the scanner if too many
consecutive empty tokens are delivered.
Fixes issue 9020.
LGTM=rsc, adg
R=golang-codereviews, rsc, adg, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/169970043
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions