diff options
| author | Adam Langley <agl@golang.org> | 2015-06-13 13:50:02 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2015-06-29 02:50:49 +0000 |
| commit | 0a6df4a87b8333e1029c1940c84e39fad66352fa (patch) | |
| tree | 426e5295f4ea9745056c0d8ff77330c8c07e89da /src/encoding/binary/binary.go | |
| parent | fdd921c9f40f75843838d8f0218106cf078810ed (diff) | |
| download | go-0a6df4a87b8333e1029c1940c84e39fad66352fa.tar.xz | |
encoding/asn1: don't parse invalid UTF-8.
Invalid UTF-8 triggers an error when marshaling but, previously, not
when unmarshaling. This means that ASN.1 structures were not
round-tripping.
This change makes invalid UTF-8 in a string marked as UTF-8 to be an
error when Unmarshaling.
Fixes #11126.
Change-Id: Ic37be84d21dc5c03983525e244d955a8b1e1ff14
Reviewed-on: https://go-review.googlesource.com/11056
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/encoding/binary/binary.go')
0 files changed, 0 insertions, 0 deletions
