]> Cypherpunks repositories - gostls13.git/commit
runtime: check that new slice cap doesn't overflow
authorDave Cheney <dave@cheney.net>
Thu, 3 Apr 2014 02:44:44 +0000 (13:44 +1100)
committerDave Cheney <dave@cheney.net>
Thu, 3 Apr 2014 02:44:44 +0000 (13:44 +1100)
commit9121e7e4df8e3867be2929cb2188272fbfe4408e
tree5452a56ff5fb30c7995ad03dc5d6a0a9eb741023
parent568f50e3fcf3643cd5dd0ebf645ad2611cd34be5
runtime: check that new slice cap doesn't overflow

Fixes #7550.

LGTM=iant
R=golang-codereviews, iant, josharian
CC=golang-codereviews
https://golang.org/cl/83520043
src/pkg/runtime/slice.goc
test/fixedbugs/issue7550.go [new file with mode: 0644]