]> Cypherpunks repositories - gostls13.git/commit
fmt: fix crash of %b on huge negative int64
authorRob Pike <r@golang.org>
Thu, 12 Apr 2012 23:28:37 +0000 (09:28 +1000)
committerRob Pike <r@golang.org>
Thu, 12 Apr 2012 23:28:37 +0000 (09:28 +1000)
commita662d3d9a757c0556f27d650a9dfe3bf0f2db1bf
treeab9ce003d09ce735b8ada5dc6eb1b878b6e5e332
parente6e8b72377a8235b0dca4bbe485800341c6880cf
fmt: fix crash of %b on huge negative int64
The buffer had 64 bytes but needs one more for the sign.

Fixes #3510.

R=golang-dev, dave, dsymonds
CC=golang-dev
https://golang.org/cl/6011057
src/pkg/fmt/fmt_test.go
src/pkg/fmt/format.go