diff options
| author | Austin Clements <austin@google.com> | 2014-10-27 17:12:48 -0400 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2014-10-27 17:12:48 -0400 |
| commit | 3e62d2184ab2d2ac6053e3f4af5e3f99902c1e32 (patch) | |
| tree | 75c369872a6122952e70a6f9b1089e2ac21ed4f9 /src/encoding/json/encode.go | |
| parent | 77595e462be07b8229f88cbdf947e320bfc7e639 (diff) | |
| download | go-3e62d2184ab2d2ac6053e3f4af5e3f99902c1e32.tar.xz | |
runtime: fix endianness assumption when decoding ftab
The ftab ends with a half functab record consisting only of
the 'entry' field followed by a uint32 giving the offset of
the next table. Previously, symtabinit assumed it could read
this uint32 as a uintptr. Since this is unsafe on big endian,
explicitly read the offset as a uint32.
LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/157660043
Diffstat (limited to 'src/encoding/json/encode.go')
0 files changed, 0 insertions, 0 deletions
