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

Issue 4538090: code review 4538090: compress/flate: fix + test encoder error (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 11 months ago by rsc
Modified:
13 years, 11 months ago
Reviewers:
imkrasin, aam
CC:
golang-dev
Visibility:
Public.

Description

compress/flate: fix + test encoder error Fixes issue 1833. Discussion there. The new behavior is consistent with zlib.

Patch Set 1 #

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

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

Patch Set 4 : diff -r bc60ab925392 https://go.googlecode.com/hg #

Total comments: 1

Patch Set 5 : diff -r 8a4444cbb46f https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 8a4444cbb46f https://go.googlecode.com/hg/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -96 lines) Patch
M src/pkg/compress/flate/huffman_bit_writer.go View 1 2 3 4 5 6 chunks +45 lines, -59 lines 1 comment Download
M src/pkg/compress/zlib/writer_test.go View 1 6 chunks +40 lines, -37 lines 0 comments Download

Messages

Total messages: 13
rsc
Hello mirtchovski@gmail.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg
13 years, 11 months ago (2011-05-24 17:04:59 UTC) #1
aam
http://codereview.appspot.com/4538090/diff/4002/src/pkg/compress/flate/huffman_bit_writer.go File src/pkg/compress/flate/huffman_bit_writer.go (right): http://codereview.appspot.com/4538090/diff/4002/src/pkg/compress/flate/huffman_bit_writer.go#newcode397 src/pkg/compress/flate/huffman_bit_writer.go:397: for numOffsets > 1 && w.offsetFreq[numOffsets-1] == 0 { ...
13 years, 11 months ago (2011-05-24 17:15:49 UTC) #2
rsc
Hello mirtchovski@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 11 months ago (2011-05-25 04:30:19 UTC) #3
rsc
I cleaned up the code a little. It is unclear to me why you don't ...
13 years, 11 months ago (2011-05-25 04:32:48 UTC) #4
aam
LGTM. this is fairly specific code though, so you may want to get a second ...
13 years, 11 months ago (2011-05-25 04:46:09 UTC) #5
rsc
+krasin
13 years, 11 months ago (2011-05-25 05:00:03 UTC) #6
imkrasin
On 2011/05/25 05:00:03, rsc wrote: > +krasin Thanks, I've started looking into this.
13 years, 11 months ago (2011-05-25 05:54:09 UTC) #7
imkrasin
http://codereview.appspot.com/4538090/diff/6002/src/pkg/compress/flate/huffman_bit_writer.go File src/pkg/compress/flate/huffman_bit_writer.go (right): http://codereview.appspot.com/4538090/diff/6002/src/pkg/compress/flate/huffman_bit_writer.go#newcode388 src/pkg/compress/flate/huffman_bit_writer.go:388: for numOffsets > 0 && w.offsetFreq[numOffsets-1] == 0 { ...
13 years, 11 months ago (2011-05-25 06:19:08 UTC) #8
aam
> This is the actual fix, not the other stuff, right? yes, the issue discussing ...
13 years, 11 months ago (2011-05-25 06:28:33 UTC) #9
rsc
> This is the actual fix, not the other stuff, right? > I have not ...
13 years, 11 months ago (2011-05-25 11:25:47 UTC) #10
imkrasin
I'm still looking into this. I hope to finish my investigations before the end of ...
13 years, 11 months ago (2011-05-25 18:53:50 UTC) #11
imkrasin
Ok. The actual bug was inside sortByFreq. I've just checked that my fix works with ...
13 years, 11 months ago (2011-05-25 22:41:30 UTC) #12
rsc
13 years, 11 months ago (2011-05-27 04:25:27 UTC) #13
*** Abandoned ***
Sign in to reply to this message.

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