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

Issue 5970078: code review 5970078: encoding/ascii85: fix panic caused by special case (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by dchest
Modified:
12 years, 1 month ago
Reviewers:
CC:
golang-dev, rsc
Visibility:
Public.

Description

encoding/ascii85: fix panic caused by special case Special case for encoding 4 zeros as 'z' didn't update source slice, causing 'index out of bounds' panic in destination slice.

Patch Set 1 #

Patch Set 2 : diff -r fda7b4c9978d https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r fda7b4c9978d https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M src/pkg/encoding/ascii85/ascii85.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/encoding/ascii85/ascii85_test.go View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 4
dchest
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 1 month ago (2012-04-03 21:23:52 UTC) #1
dchest
12 years, 1 month ago (2012-04-03 22:59:54 UTC) #2
rsc
LGTM
12 years, 1 month ago (2012-04-04 13:52:29 UTC) #3
rsc
12 years, 1 month ago (2012-04-04 13:52:47 UTC) #4
*** Submitted as http://code.google.com/p/go/source/detail?r=b127df6df1ab ***

encoding/ascii85: fix panic caused by special case

Special case for encoding 4 zeros as 'z' didn't
update source slice, causing 'index out of bounds'
panic in destination slice.

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/5970078

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