Skip to content

Tags: klauspost/compress

Tags

v1.18.2

Toggle v1.18.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix invalid encoding on level 9 with single value input (#1115)

* Fix invalid encoding on level 9 with single value input

With single value input and a full block write (>=64K) the indexing function would overflow a uint16 to a 0.

This would make it impossible to generate a valid huffman table for the literal size prediction.

In turn this would mean that the entire block would be output as literals - since the cost of the value would be 0 bits.

This would in turn mean that EOB could not be encoded for the bit writer - since there were no matches. This was previously being satisfied with "filling".

Fixes:

1. First never encode more than `maxFlateBlockTokens` - 32K for the literal estimate table.
2. Always include EOB explicitly - if somehow literals should slip through.
3. Add test that will write big single-value input as regression test. Others were using copy that does smaller writes.

Fixes #1114

* Retract v1.18.1

v1.18.1

Toggle v1.18.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
build(deps): bump the github-actions group with 2 updates (#1105)

Bumps the github-actions group with 2 updates: [github/codeql-action](https://github.com/github/codeql-action) and [actions/setup-go](https://github.com/actions/setup-go).


Updates `github/codeql-action` from 3.30.0 to 3.30.5
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@2d92b76...3599b3b)

Updates `actions/setup-go` from 5.5.0 to 6.0.0
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](actions/setup-go@v5.5.0...v6)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 3.30.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: actions/setup-go
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

v1.18.0

Toggle v1.18.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Deprecate Go 1.21 and add 1.24 (#1055)

* Deprecate Go 1.21 and add 1.24
* Update s2sx go.mod

Remove old docs, prep for new release.

v1.17.11

Toggle v1.17.11's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
zstd: Fix extra CRC written with multiple Close calls (#1017)

* zstd: Fix extra CRC written with multiple Close calls
* Also check write/flush after close.

Fixes #1016

v1.17.10

Toggle v1.17.10's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update README.md

v1.17.9

Toggle v1.17.9's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Upgrade zlib to upstream (#971)

Mostly cosmetic changes.

v1.17.8

Toggle v1.17.8's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update README.md

v1.17.7

Toggle v1.17.7's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
tests: Rename fuzz helpers back. (#931)

v1.17.6

Toggle v1.17.6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
s2: Fix DecodeConcurrent deadlock on errors (#925)

When DecodeConcurrent encounters an error it can lock up in some cases.

Fix and add fuzz test for stream decoding.

Fixes #920

v1.17.5

Toggle v1.17.5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
s2: Document and test how to peek the stream for skippable blocks (#918)

Co-authored-by: Klaus Post <[email protected]>