aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/encode.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2019-10-15 13:44:22 -0700
committerRobert Griesemer <gri@golang.org>2019-10-15 23:31:58 +0000
commit898f9db81f112ca33aa2102633f957f9669c062d (patch)
tree8a705958d5034d57c31077ff24e47bc813ed5809 /src/encoding/json/encode.go
parent52e5987f5d92f707411359d9f56cb0cec97ac167 (diff)
downloadgo-898f9db81f112ca33aa2102633f957f9669c062d.tar.xz
math/big: make Rat accessors safe for concurrent use
Do not modify the underlying Rat denominator when calling one of the accessors Float32, Float64; verify that we don't modify the Rat denominator when calling Inv, Sign, IsInt, Num. Fixes #34919. Reopens #33792. Change-Id: Ife6d1252373f493a597398ee51e7b5695b708df5 Reviewed-on: https://go-review.googlesource.com/c/go/+/201205 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/encoding/json/encode.go')
0 files changed, 0 insertions, 0 deletions