]> Cypherpunks repositories - gostls13.git/commit
compress/flate: always return uncompressed data in the event of error
authorJoe Tsai <joetsai@digital-static.net>
Tue, 30 Aug 2016 23:08:06 +0000 (16:08 -0700)
committerJoe Tsai <thebrokentoaster@gmail.com>
Wed, 31 Aug 2016 01:12:02 +0000 (01:12 +0000)
commitd3092464624f1f0ad29fa0ac4c4069fdd0697155
treec155e1fedfc3247cf0436604686ea6861107e34e
parent6ebacf18a5769d071f467fae455a142a964a43da
compress/flate: always return uncompressed data in the event of error

In the event of an unexpected error, we should always flush available
decompressed data to the user.

Fixes #16924

Change-Id: I0bc0824c3201f3149e84e6a26e3dbcba72a1aae5
Reviewed-on: https://go-review.googlesource.com/28216
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/compress/flate/inflate.go
src/compress/flate/inflate_test.go
src/compress/gzip/gunzip_test.go
src/compress/zlib/reader_test.go