zlib: improve zstd decoding across chunk boundaries - #65865
Closed
jasnell wants to merge 1 commit into
Closed
Conversation
Discovered when testing some other changes that zstd was not handling certain chunk boundaries very well. This fixes it. - Decodes concatenated and skippable zstd frames across all chunk boundaries. - Preserves rejectGarbageAfterEnd semantics. - Reports corruption in subsequent frames. - Handles trailing partial frame identifiers consistently. - Covers classic sync/async and iterable APIs. - Updated documentation and internal typings. Signed-off-by: James M Snell <jasnell@gmail.com> Assisted-by: Opencode
This comment was marked as outdated.
This comment was marked as outdated.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #65865 +/- ##
=======================================
Coverage 90.18% 90.19%
=======================================
Files 771 771
Lines 264619 264687 +68
Branches 50231 50256 +25
=======================================
+ Hits 238653 238735 +82
+ Misses 16961 16952 -9
+ Partials 9005 9000 -5
🚀 New features to boost your workflow:
|
Collaborator
Member
|
The Error: not ok 5 line-length: Line should be <= 72 columns.
...
'- Decodes concatenated and skippable zstd frames across all chunk boundaries.', |
Member
Author
|
Yes, I'll fix the lint issue in the commit message when landing. |
panva
approved these changes
Sep 8, 2026
trivikr
approved these changes
Sep 8, 2026
jasnell
added a commit
that referenced
this pull request
Sep 8, 2026
Discovered when testing some other changes that zstd was not handling certain chunk boundaries very well. This fixes it. - Decodes concatenated and skippable zstd frames across all chunk boundaries. - Preserves rejectGarbageAfterEnd semantics. - Reports corruption in subsequent frames. - Handles trailing partial frame identifiers consistently. - Covers classic sync/async and iterable APIs. - Updated documentation and internal typings. Signed-off-by: James M Snell <jasnell@gmail.com> Assisted-by: Opencode PR-URL: #65865 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Member
Author
|
Landed in 7055c48 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Discovered when testing some other changes that zstd was not handling certain chunk boundaries very well. This fixes it.
Technically a behavior change but zstd is still experimental.