diff options
| author | Adam Langley <agl@golang.org> | 2015-06-14 16:41:31 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2015-06-26 16:16:51 +0000 |
| commit | 4ec946ce95226b9e1b5258bdc3d46090d828d896 (patch) | |
| tree | 6ea59f64a0ed2de59ab1932e2a7ea2075d086c58 /src/debug/elf/testdata | |
| parent | c248aaef7049c9c90af787d7fa91de378fa7e202 (diff) | |
| download | go-4ec946ce95226b9e1b5258bdc3d46090d828d896.tar.xz | |
crypto/x509: don't panic when decrypting invalid PEM data.
If an encrypted PEM block contained ciphertext that was not a multiple
of the block size then the code would panic. This change tests for that
case and returns an error.
Fixes #11215.
Change-Id: I7b700f99e20810c4f545519b1e9d766b4640e8a7
Reviewed-on: https://go-review.googlesource.com/11097
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/debug/elf/testdata')
0 files changed, 0 insertions, 0 deletions
