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 | 590f5283762a6e80796c3ae2bde410319162cb45 (patch) | |
| tree | 3959f29536f143fde183b6cddc63c04731bc0082 /src/os/exec/exec_test.go | |
| parent | bb4a358af3469a1dee0cb5bcae245865233aa9ea (diff) | |
| download | go-590f5283762a6e80796c3ae2bde410319162cb45.tar.xz | |
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 #9020.
LGTM=rsc, adg
R=golang-codereviews, rsc, adg, bradfitz
CC=golang-codereviews
https://golang.org/cl/169970043
Diffstat (limited to 'src/os/exec/exec_test.go')
0 files changed, 0 insertions, 0 deletions
