]> Cypherpunks repositories - gostls13.git/commit
internal/zstd: allow zero dictionary id
authorAlexander Yastrebov <yastrebov.alex@gmail.com>
Wed, 27 Sep 2023 23:53:37 +0000 (23:53 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 28 Sep 2023 17:56:15 +0000 (17:56 +0000)
commita57658171fb6db2d3c3681d6173ffa59ab94fc65
treede355f8e212972a7aabd2417f42f2306c4921219
parent9d3cc85e51d8285556b818a44dce0fce94f261fe
internal/zstd: allow zero dictionary id

A value of 0 has same meaning as no Dictionary_ID,
in which case the frame may or may not need a dictionary to be decoded,
and the ID of such a dictionary is not specified.

See https://github.com/facebook/zstd/issues/2172

For #62513

Change-Id: If0eafcbc5d2188576f0cb687234e30c9eb4037a6
GitHub-Last-Rev: 9cf12dcf194a90367a74b808bbe464815f71f42a
GitHub-Pull-Request: golang/go#63268
Reviewed-on: https://go-review.googlesource.com/c/go/+/531515
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
src/internal/zstd/testdata/fcf30b99.zero-dictionary-ids.zst [new file with mode: 0644]
src/internal/zstd/zstd.go