From: Ivan Krasin Date: Mon, 12 Dec 2011 23:25:32 +0000 (-0500) Subject: compress/flate: fix out of bounds error X-Git-Tag: weekly.2011-12-14~76 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b1ae728d19b0fdc6576823dbe682d453d8f59e01;p=gostls13.git compress/flate: fix out of bounds error Fixes #2508. R=rsc, krasin CC=golang-dev https://golang.org/cl/5449115 --- diff --git a/src/pkg/compress/flate/deflate.go b/src/pkg/compress/flate/deflate.go index 1f659bab71..4f744457dd 100644 --- a/src/pkg/compress/flate/deflate.go +++ b/src/pkg/compress/flate/deflate.go @@ -319,7 +319,9 @@ Loop: // For matches this long, we don't bother inserting each individual // item into the table. d.index += d.length - d.hash = (int(d.window[d.index])<