]> Cypherpunks repositories - gostls13.git/commit
compress/gzip: fix error handling in Read
authorJoe Tsai <joetsai@digital-static.net>
Wed, 30 Mar 2016 06:37:59 +0000 (23:37 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 30 Mar 2016 11:37:20 +0000 (11:37 +0000)
commit152a08c531a3219489136df71a8d75ff9ba3bf06
treefa3bbee93ae7027bcd6d3fd04d3bf552d8443e59
parent6b97dbf848d1019a9e8195e8914530a2cc518327
compress/gzip: fix error handling in Read

The Read logic should not assume that only (0, io.EOF) is returned
instead of (n, io.EOF) where n is positive.

The fix done here is very similar to the fix to compress/zlib
in CL/20292.

Change-Id: Icb76258cdcf8cfa386a60bab330fefde46fc071d
Reviewed-on: https://go-review.googlesource.com/21308
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/compress/gzip/gunzip.go