]> Cypherpunks repositories - gostls13.git/commit
fmt: fix caching bug in Scan
authorRuss Cox <rsc@golang.org>
Tue, 31 Jan 2012 23:38:33 +0000 (18:38 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 31 Jan 2012 23:38:33 +0000 (18:38 -0500)
commitd7c04517a031547ec0e66d3b4e619cbd26d77fcf
tree93f0dff900580e1f6d5d140e2a8a5eab89c35fbe
parentd3285f2a796f4fc856da9a15ca8a7dbff418aea1
fmt: fix caching bug in Scan

Black box test is too time-consuming, as the bug
does not appear until Scan has processed 2 GB of
input in total across multiple calls, so no test.

Thanks to Frederick Mayle for the diagnosis and fix.

Fixes #2809.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5611043
src/pkg/fmt/scan.go