commit | 84506e0f6bf282765856cb5aeb17124222f73042 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Sat Nov 28 06:48:54 2020 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Mon Nov 30 20:22:02 2020 +0000 |
tree | fc26ebc6c0d07ff6e0c4660571c8261ec1b2168a | |
parent | be1738f1fff0e817d921ed568791f9b0585a6982 [diff] |
compiler, runtime: check len/cap for append(s, make(T, l)...) The overflow checks done in growslice always reported an error for the capacity argument, even if it was the length argument that overflowed. This change lets the code pass the current issue4085b.go test. Change-Id: Ib531d4675e732cdec9eac4317104d6b8ba4cfbad Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/273806 Trust: Ian Lance Taylor <iant@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>