Descriptionmath/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")
}
Patch Set 1 #Patch Set 2 : diff -r c5f4de48505f https://go.googlecode.com/hg/ #Patch Set 3 : diff -r c5f4de48505f https://go.googlecode.com/hg/ #
Total comments: 7
Patch Set 4 : diff -r c5f4de48505f https://go.googlecode.com/hg/ #MessagesTotal messages: 5
|