]> Cypherpunks repositories - gostls13.git/commit
encoding/pem: refuse extra data on ending line
authorJoe Shaw <joe@joeshaw.org>
Fri, 17 Feb 2017 16:55:42 +0000 (11:55 -0500)
committerAdam Langley <agl@golang.org>
Wed, 1 Mar 2017 19:23:09 +0000 (19:23 +0000)
commitd271576a0f7578288d663afee9d308e67e4a9d48
tree2a9677037c8b054f7ac4578972017d4a5ed01ea4
parentb2a2a6054a015eddad4043f55fa280aed0334607
encoding/pem: refuse extra data on ending line

Previously the code didn't check for extra data after the final five
dashes of the ending line of a PEM block.

Fixes #19147
Fixes #7042

Change-Id: Idaab2390914a2bed8c2c12b14dfb6d68233fdfec
Reviewed-on: https://go-review.googlesource.com/37147
Reviewed-by: Adam Langley <agl@golang.org>
src/encoding/pem/pem.go
src/encoding/pem/pem_test.go