Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4942)

Issue 7311069: code review 7311069: encoding/base32, encoding/base64: fix issues with decod... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by pkwarren
Modified:
11 years, 1 month ago
Reviewers:
CC:
minux1, rsc, bradfitz, golang-dev
Visibility:
Public.

Description

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 issue 4779.

Patch Set 1 #

Patch Set 2 : diff -r a44171137af8 https://code.google.com/p/go #

Patch Set 3 : diff -r a44171137af8 https://code.google.com/p/go #

Total comments: 4

Patch Set 4 : diff -r a44171137af8 https://code.google.com/p/go #

Patch Set 5 : diff -r a44171137af8 https://code.google.com/p/go #

Total comments: 2

Patch Set 6 : diff -r 5e5bff52a1a7 https://code.google.com/p/go #

Patch Set 7 : diff -r 07986049cf6b https://code.google.com/p/go #

Patch Set 8 : diff -r 07986049cf6b https://code.google.com/p/go #

Total comments: 1

Patch Set 9 : diff -r 7b6b3b170d9a https://code.google.com/p/go #

Patch Set 10 : diff -r 7b6b3b170d9a https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -22 lines) Patch
M src/pkg/encoding/base32/base32.go View 1 2 3 4 5 6 7 8 6 chunks +39 lines, -6 lines 0 comments Download
M src/pkg/encoding/base32/base32_test.go View 1 2 3 4 5 6 7 8 3 chunks +53 lines, -10 lines 0 comments Download
M src/pkg/encoding/base64/base64.go View 1 2 3 4 5 6 7 8 6 chunks +39 lines, -6 lines 0 comments Download
M src/pkg/encoding/base64/base64_test.go View 1 2 3 4 5 6 7 8 3 chunks +40 lines, -0 lines 0 comments Download

Messages

Total messages: 15
pkwarren
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
11 years, 2 months ago (2013-02-10 17:46:15 UTC) #1
minux1
https://codereview.appspot.com/7311069/diff/2002/src/pkg/encoding/base64/base64.go File src/pkg/encoding/base64/base64.go (right): https://codereview.appspot.com/7311069/diff/2002/src/pkg/encoding/base64/base64.go#newcode227 src/pkg/encoding/base64/base64.go:227: // Ignore this character. seems this if is of ...
11 years, 2 months ago (2013-02-10 20:40:29 UTC) #2
pkwarren
Hello golang-dev@googlegroups.com, minux.ma@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 2 months ago (2013-02-10 21:14:02 UTC) #3
pkwarren
https://codereview.appspot.com/7311069/diff/2002/src/pkg/encoding/base64/base64.go File src/pkg/encoding/base64/base64.go (right): https://codereview.appspot.com/7311069/diff/2002/src/pkg/encoding/base64/base64.go#newcode227 src/pkg/encoding/base64/base64.go:227: // Ignore this character. On 2013/02/10 20:40:29, minux wrote: ...
11 years, 2 months ago (2013-02-10 21:14:29 UTC) #4
pkwarren
Hello golang-dev@googlegroups.com, minux.ma@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 2 months ago (2013-02-10 21:18:28 UTC) #5
rsc
https://codereview.appspot.com/7311069/diff/5/src/pkg/encoding/base64/base64.go File src/pkg/encoding/base64/base64.go (right): https://codereview.appspot.com/7311069/diff/5/src/pkg/encoding/base64/base64.go#newcode233 src/pkg/encoding/base64/base64.go:233: nonWsIdx := bytes.IndexFunc(src, func(r rune) bool { Why is ...
11 years, 2 months ago (2013-02-14 19:20:17 UTC) #6
pkwarren
https://codereview.appspot.com/7311069/diff/5/src/pkg/encoding/base64/base64.go File src/pkg/encoding/base64/base64.go (right): https://codereview.appspot.com/7311069/diff/5/src/pkg/encoding/base64/base64.go#newcode233 src/pkg/encoding/base64/base64.go:233: nonWsIdx := bytes.IndexFunc(src, func(r rune) bool { On 2013/02/14 ...
11 years, 2 months ago (2013-02-14 20:01:25 UTC) #7
pkwarren
Hello golang-dev@googlegroups.com, minux.ma@gmail.com, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 2 months ago (2013-02-23 22:41:21 UTC) #8
rsc
LGTM Next up, base32. Could you please add it to this same CL?
11 years, 1 month ago (2013-03-11 20:52:29 UTC) #9
pkwarren
Hello minux.ma@gmail.com, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 1 month ago (2013-03-11 23:01:22 UTC) #10
bradfitz
Commit message first line: encoding/base32, encoding/base64: fix issues with decoder whitespace handling On Mon, Mar ...
11 years, 1 month ago (2013-03-11 23:10:08 UTC) #11
pkwarren
Updated first line of commit message.
11 years, 1 month ago (2013-03-11 23:43:56 UTC) #12
rsc
same in base32. otherwise looks good. thanks. https://codereview.appspot.com/7311069/diff/22001/src/pkg/encoding/base64/base64_test.go File src/pkg/encoding/base64/base64_test.go (right): https://codereview.appspot.com/7311069/diff/22001/src/pkg/encoding/base64/base64_test.go#newcode300 src/pkg/encoding/base64/base64_test.go:300: encoded_no_ws := ...
11 years, 1 month ago (2013-03-12 03:18:27 UTC) #13
pkwarren
Hello minux.ma@gmail.com, rsc@golang.org, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 1 month ago (2013-03-12 05:14:13 UTC) #14
rsc
11 years, 1 month ago (2013-03-12 05:50:14 UTC) #15
*** Submitted as https://code.google.com/p/go/source/detail?r=15d86e64b42e ***

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 issue 4779.

R=minux.ma, rsc, bradfitz
CC=golang-dev
https://codereview.appspot.com/7311069

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b