]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1] compress/flate: fix overflow on 2GB input. Reset hashOffset...
authorIvan Krasin <krasin@golang.org>
Wed, 13 Jun 2012 20:24:31 +0000 (16:24 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 13 Jun 2012 20:24:31 +0000 (16:24 -0400)
commit5fc093e3c08f5f19531d5a1efcc088c1f21dc1ea
treea1460269376e9686b15d360bb352be7197d97b15
parent19af0b28c5bafbcb361ad5ca4b116d9a36a595a3
[release-branch.go1] compress/flate: fix overflow on 2GB input. Reset hashOffset every 16 MB.

««« backport 00a1ca1ea3bd
compress/flate: fix overflow on 2GB input. Reset hashOffset every 16 MB.

This bug has been introduced in the following revision:

changeset:   11404:26dceba5c610
user:        Ivan Krasin <krasin@golang.org>
date:        Mon Jan 23 09:19:39 2012 -0500
summary:     compress/flate: reduce memory pressure at cost of additional arithmetic operation.

This is the review page for that CL: https://golang.org/cl/5555070/

R=rsc, imkrasin
CC=golang-dev
https://golang.org/cl/6249067

»»»
src/pkg/compress/flate/deflate.go
src/pkg/compress/flate/deflate_test.go