Skip to content

Add support for 32-bit offsets (#761)#761

Open
terrelln wants to merge 4 commits into
facebook:devfrom
terrelln:export-D104873678
Open

Add support for 32-bit offsets (#761)#761
terrelln wants to merge 4 commits into
facebook:devfrom
terrelln:export-D104873678

Conversation

@terrelln
Copy link
Copy Markdown
Contributor

@terrelln terrelln commented May 15, 2026

Summary: Pull Request resolved: #761

Differential Revision: D104873678

@meta-cla meta-cla Bot added the cla signed label May 15, 2026
@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 D104873678.

terrelln added 4 commits May 15, 2026 14:15
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.

Reviewed By: Cyan4973

Differential Revision: D104838040
Summary:

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

Differential Revision: D105332025
Summary: Pull Request resolved: facebook#761

Differential Revision: D104873678
@meta-codesync meta-codesync Bot changed the title Add support for 32-bit offsets Add support for 32-bit offsets (#761) May 15, 2026
@terrelln terrelln force-pushed the export-D104873678 branch from 0c6ea75 to 3a4c087 Compare May 15, 2026 21:16
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