]> Cypherpunks repositories - gostls13.git/commit
encoding/base32, encoding/base64: fix issues with decoder whitespace handling
authorPhilip K. Warren <pkwarren@gmail.com>
Tue, 12 Mar 2013 05:50:10 +0000 (01:50 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 12 Mar 2013 05:50:10 +0000 (01:50 -0400)
commitb4237b599708b7f8d7d967806e577692db30a4f1
tree2eb5f3fbaae7dba42836c64208f32cf2bc53f685
parentb803f80c28a879a7a8c1ed3eae61ec4ec6549f03
encoding/base32, encoding/base64: fix issues with decoder whitespace handling

Adds a new reader to filter newlines, which fixes errors seen in the
decoder chunking code. Found additional issues with whitespace handling
after the first padding character.
Fixes #4779.

R=minux.ma, rsc, bradfitz
CC=golang-dev
https://golang.org/cl/7311069
src/pkg/encoding/base32/base32.go
src/pkg/encoding/base32/base32_test.go
src/pkg/encoding/base64/base64.go
src/pkg/encoding/base64/base64_test.go