1
0
mirror of https://github.com/golang/go synced 2024-11-06 02:26:17 -07:00
go/src/encoding
Monis Khan 94aba76639 encoding/asn1: support 31 bit identifiers with OID
The current implementation uses a max of 28 bits when decoding an
ObjectIdentifier.  This change makes it so that an int64 is used to
accumulate up to 35 bits.  If the resulting data would not overflow
an int32, it is used as an int.  Thus up to 31 bits may be used to
represent each subidentifier of an ObjectIdentifier.

Fixes #19933

Change-Id: I95d74b64b24cdb1339ff13421055bce61c80243c
Reviewed-on: https://go-review.googlesource.com/40436
Reviewed-by: Adam Langley <agl@golang.org>
Run-TryBot: Adam Langley <agl@golang.org>
2017-04-13 00:49:49 +00:00
..
ascii85
asn1 encoding/asn1: support 31 bit identifiers with OID 2017-04-13 00:49:49 +00:00
base32
base64 encoding/base64, html/template: fix grammar mistakes 2017-03-07 17:42:45 +00:00
binary cmd/compile/internal/ssa: combine 2 byte loads + shifts into word load + rolw 8 on AMD64 2017-02-14 22:17:08 +00:00
csv encoding/csv: document Read error behavior 2016-10-28 19:38:12 +00:00
gob encoding/gob: Speedup map decoding by reducing the allocations. 2017-03-24 19:36:14 +00:00
hex encoding/hex: Document DecodedLen. 2016-11-13 17:53:22 +00:00
json encoding/json: reduce unmarshal mallocs for unmapped fields 2017-03-20 23:58:56 +00:00
pem encoding/pem: yet another fuzz fake failure 2017-04-03 18:46:56 +00:00
xml encoding/xml: unmarshal allow empty, non-string values 2017-03-22 23:33:36 +00:00
encoding.go