mirror of
https://github.com/golang/go
synced 2024-11-05 17:46:16 -07:00
7b40b0c3a3
Panic if Repeat is given a negative count or if the value of (len(*) * count) is detected to overflow. We panic because we cannot change the signature of Repeat to return an error. Fixes #16237 Change-Id: I9f5ba031a5b8533db0582d7a672ffb715143f3fb Reviewed-on: https://go-review.googlesource.com/29954 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> |
||
---|---|---|
.. | ||
compare_test.go | ||
compare.go | ||
example_test.go | ||
export_test.go | ||
reader_test.go | ||
reader.go | ||
replace_test.go | ||
replace.go | ||
search_test.go | ||
search.go | ||
strings_amd64.go | ||
strings_decl.go | ||
strings_generic.go | ||
strings_test.go | ||
strings.go | ||
strings.s |