Skip to content

Tags: klauspost/compress

Tags

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]>

v1.17.4

Toggle v1.17.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
gzhttp: Allow overriding decompression on transport (#892)

This allows getting compressed data even if `Content-Encoding` is set.

Also allows decompression even if "Accept-Encoding" was not set by this client.

v1.17.3

Toggle v1.17.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
gzhttp: Fix missing content type on Close (#883)

If compression had not yet been triggered in Write, be sure to detect content type on Close.

Fixes #882

v1.17.2

Toggle v1.17.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
zstd: Fix corrupted output in "best" (#876)

* zstd: Fix corrupted output in "best"

Regression from #784 and followup #793

Fixes #875

A 0 offset backreference was possible when "improve" was successful twice in a row in the "skipBeginning" part, only finding 2 (previously unmatches) length 4 matches, but where start offset decreased by 2 in both cases.

This would result in output where the end offset would equal to the next 's', thereby doing a self-reference.

Add a general check in "improve" and just reject these. Will also guard against similar issues in the future.

This also hints at some potentially suboptimal hash indexing - but I will take that improvement separately.

Fuzz test set updated.

v1.17.1

Toggle v1.17.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
s2: Fix S2 best dictionary wrong encoding (#871)

A dictionary match one byte out of dictionary range was possible.

Recovery is possible. Send me a request if you find any content with this error in the [discussion](https://github.com/klauspost/compress/discussions/categories/general).

v1.17.0

Toggle v1.17.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
gzip: Copy bufio.Reader on Reset (#860)

The code already checks to see if the buffer can be reused, but since
it's not copied in the overwrite, a new buffer is allocated each time.