]> Cypherpunks repositories - gostls13.git/commit
encoding/asn1: check bounds when parsing tag and length
authorKyle Isom <kyle@gokyle.net>
Thu, 4 Jun 2015 20:23:25 +0000 (13:23 -0700)
committerAdam Langley <agl@golang.org>
Sat, 13 Jun 2015 19:59:16 +0000 (19:59 +0000)
commit38e3427b2ffd90c4eca3643069a21c6e936566de
tree38fc475399f76b73ae4a48e505f5727d59bb42bc
parenta1fe3b5046d9f7249c04ce942f4d2d1d771bff40
encoding/asn1: check bounds when parsing tag and length

This was found while fuzzing another program, triggering a panic in
x509.ParseECPrivateKey.

Fixes #11154

Change-Id: Ief35ead38adf14caec4d37b9eacf8a92e67cd1e6
Reviewed-on: https://go-review.googlesource.com/10712
Reviewed-by: Adam Langley <agl@golang.org>
Run-TryBot: Adam Langley <agl@golang.org>
src/encoding/asn1/asn1.go
src/encoding/asn1/asn1_test.go