]> Cypherpunks repositories - gostls13.git/commit
internal/zstd: reset reader buffer
authorAlexander Yastrebov <yastrebov.alex@gmail.com>
Thu, 28 Sep 2023 22:26:57 +0000 (22:26 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 29 Sep 2023 13:03:17 +0000 (13:03 +0000)
commit20944cf0665a5aec6abab802875a9700592b5391
tree950158b6cd45f1de7f31ef16f4343bc0057cf71d
parent8c3924c6569ceb8183c136e42c9f4b7904a0c031
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: 99c0a6fa72ad67cba5d29593fd3b28d14ddce4a4
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>
src/internal/zstd/zstd.go
src/internal/zstd/zstd_test.go