Skip to content

Support negative compression levels#760

Open
terrelln wants to merge 3 commits into
facebook:devfrom
terrelln:export-D105332025
Open

Support negative compression levels#760
terrelln wants to merge 3 commits into
facebook:devfrom
terrelln:export-D105332025

Conversation

@terrelln
Copy link
Copy Markdown
Contributor

Summary: Add negative compression level support to directly content with Zstd negative levels.

Differential Revision: D105332025

terrelln added 3 commits May 15, 2026 09:02
Summary:

Allow the fuzzer to find the bug in D104838040 with short inputs.

I haven't gotten the fuzzer to reproduce it yet, but in theory it should be able to.

Reviewed By: kevinjzhang

Differential Revision: D104843371
Summary:

The LZ encoder capped `matchLength()` at `UINT16_MAX` because sequence match
lengths are stored as `uint16_t`. If the match had been walked backward at least
`UINT16_MAX` bytes, then the match finding process would resume at a position
which had already been inserted into the hash table. This would result in match
with `distance <= 0` and corruption would ensue.

Differential Revision: D104838040
Summary: Add negative compression level support to directly content with Zstd negative levels.

Differential Revision: D105332025
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 15, 2026

@terrelln has exported this pull request. If you are a Meta employee, you can view the originating Diff in D105332025.

terrelln added a commit to terrelln/openzl that referenced this pull request May 15, 2026
Summary:

Add negative compression level support to directly content with Zstd negative levels.

Differential Revision: D105332025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant