go/src/internal/zstd
Alexander Yastrebov 20944cf066 internal/zstd: reset reader buffer
Reset r.buffer on Reset to avoid subsequent Read calls
observing previously decoded data.

For #62513

Change-Id: Icb65e76b5c5c0af32b36ec3a5999dca86407cbc8
GitHub-Last-Rev: 99c0a6fa72
GitHub-Pull-Request: golang/go#63288
Reviewed-on: https://go-review.googlesource.com/c/go/+/531735
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-09-29 13:03:17 +00:00
..
testdata internal/zstd: handle match extending past window 2023-09-28 17:57:43 +00:00
bits.go
block.go internal/zstd: handle match extending past window 2023-09-28 17:57:43 +00:00
fse.go
fse_test.go
fuzz_test.go
huff.go
literals.go
window.go internal/zstd: use circular buffer for backreference window 2023-09-20 18:05:09 +00:00
window_test.go internal/zstd: use circular buffer for backreference window 2023-09-20 18:05:09 +00:00
xxhash.go
xxhash_test.go
zstd.go internal/zstd: reset reader buffer 2023-09-29 13:03:17 +00:00
zstd_test.go internal/zstd: reset reader buffer 2023-09-29 13:03:17 +00:00