]> Cypherpunks repositories - gostls13.git/commit
runtime: don't return a slice with nil ptr but non-zero len from growslice
authorShenghou Ma <minux@golang.org>
Wed, 11 Mar 2015 16:07:50 +0000 (12:07 -0400)
committerMinux Ma <minux@golang.org>
Thu, 12 Mar 2015 00:08:38 +0000 (00:08 +0000)
commit0d6a0d6c3f98fcdd5f5826106bc9c49f348e3d75
treeef9570d549ba74f61b7bcf7605560234939812cf
parent1e1c9dc2c8143127b1ef8bd5e32b294e856586a6
runtime: don't return a slice with nil ptr but non-zero len from growslice

Fixes #10135.

Change-Id: Ic4c5ab15bcb7b9c3fcc685a788d3b59c60c26e1e
Signed-off-by: Shenghou Ma <minux@golang.org>
Reviewed-on: https://go-review.googlesource.com/7400
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/slice.go
test/fixedbugs/issue10135.go [new file with mode: 0644]