| commit | ca6de008bae698dd79adf795cd24668f36578d77 | [log] [tgz] |
|---|---|---|
| author | Roger Peppe <rogpeppe@gmail.com> | Wed Nov 30 09:29:58 2011 -0800 |
| committer | Robert Griesemer <gri@golang.org> | Wed Nov 30 09:29:58 2011 -0800 |
| tree | afad312eeede73bad6c8ab9ea5d64ec31368cdd2 | |
| parent | 8dce57e169255608b46bb563bb7de1581908aea6 [diff] |
math/big: fix destination leak into result value
This code would panic:
z := big.NewInt(1)
z.SetBit(big.NewInt(0), 2, 1)
if z.Cmp(big.NewInt(1<<2)) != 0 {
panic("fail")
}
R=rsc, gri
CC=golang-dev
https://golang.org/cl/5437081