]> Cypherpunks repositories - gostls13.git/commit
encoding/pem: be stricter about the ending line.
authorAdam Langley <agl@golang.org>
Thu, 18 Aug 2016 23:20:44 +0000 (16:20 -0700)
committerAdam Langley <agl@golang.org>
Fri, 19 Aug 2016 16:29:44 +0000 (16:29 +0000)
commit0da545d1280af9895bacff587316b68f50799f16
tree1abb6fbb4a10d03c994deed4044b704720f47c26
parenta25a7ad70323e8edea4b607aad7c9d2bb96fcc82
encoding/pem: be stricter about the ending line.

Previously the code didn't check the type and final five dashes of the
ending line of a PEM block.

Fixes #16335.

Change-Id: Ia544e8739ea738d767cfe56c8d46204214ec0b5a
Reviewed-on: https://go-review.googlesource.com/27391
Run-TryBot: Adam Langley <agl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/encoding/pem/pem.go
src/encoding/pem/pem_test.go