commit | 53c398bed9a73d333b70ab8f3a6b3395c6fc4892 | [log] [tgz] |
---|---|---|
author | Katrina Owen <katrina.owen@gmail.com> | Thu Oct 15 23:25:55 2015 -0600 |
committer | Andrew Gerrand <adg@golang.org> | Mon Oct 19 04:15:14 2015 +0000 |
tree | 60c1261e141427218a30f5b95fa58619bd2d8f09 | |
parent | bcf61dac2809cbbb687af06c5edef1e2de280b98 [diff] |
reader: give slice a larger capacity than size This causes Validate to fail if someone returns cap(b) instead of len(b) in the Read method. Fixes #golang/go#11360 Change-Id: Ic6dcd60df842288ddeaaf6e212cc7693cb9b0257 Reviewed-on: https://go-review.googlesource.com/15909 Reviewed-by: Andrew Gerrand <adg@golang.org>