Tags: klauspost/compress
Tags
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
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>
PreviousNext