]> Cypherpunks.ru repositories - gostls13.git/commit
internal/zstd: fix window resizing
authorAlexander Yastrebov <yastrebov.alex@gmail.com>
Sat, 9 Sep 2023 00:20:40 +0000 (00:20 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 13 Sep 2023 18:34:35 +0000 (18:34 +0000)
commit3e1db32657844bccb85237fc6918d2f3ab9b6893
tree156d3e27926d443c257d268c7fb15cd8ab98772c
parentdc0d126e378d649976abd06497cea8c503ba3613
internal/zstd: fix window resizing

Incorrect window resizing led to checksum error and invalid result.
To demonstrate the problem bigData must be a bit bigger, 3x is enough.

This change fixes window resizing, increases bigData size and decouples
TestLargeXXHash from bigData because it uses hardcoded hash value.

Change-Id: I50f74315b083f42e1ccd7ab2093e084f44631bb6
GitHub-Last-Rev: dbc90ba7a5f24db198cc3eab1c38aad665e41d06
GitHub-Pull-Request: golang/go#62543
Reviewed-on: https://go-review.googlesource.com/c/go/+/527115
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/internal/zstd/xxhash_test.go
src/internal/zstd/zstd.go
src/internal/zstd/zstd_test.go