zlib: validate pledgedSrcSize for sync zstd - #64601
Closed
Archkon wants to merge 1 commit into
Closed
Conversation
jasnell
approved these changes
Jul 19, 2026
This comment was marked as spam.
This comment was marked as spam.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #64601 +/- ##
==========================================
- Coverage 90.15% 90.12% -0.03%
==========================================
Files 744 744
Lines 242517 242534 +17
Branches 45688 45698 +10
==========================================
- Hits 218642 218589 -53
- Misses 15358 15437 +79
+ Partials 8517 8508 -9
🚀 New features to boost your workflow:
|
This comment has been minimized.
This comment has been minimized.
This comment was marked as spam.
This comment was marked as spam.
Zstd replaces a configured pledged source size with the input size when the first call to ZSTD_compressStream2() uses ZSTD_e_end. Track consumed input in Node and report ZSTD_error_srcSize_wrong when the completed frame does not match the original pledge. Signed-off-by: Archkon <180910180+Archkon@users.noreply.github.com>
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment has been minimized.
This comment has been minimized.
This comment was marked as spam.
This comment was marked as spam.
Member
|
You killed the runner apparently 😉 |
Collaborator
Collaborator
Commit Queue failed- Loading data for nodejs/node/pull/64601 ✔ Done loading data for nodejs/node/pull/64601 ----------------------------------- PR info ------------------------------------ Title zlib: validate pledgedSrcSize for sync zstd (#64601) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch Archkon:zlib2 -> nodejs:main Labels c++, zlib, author ready, needs-ci Commits 1 - zlib: validate pledgedSrcSize for sync zstd Committers 1 - Archkon <180910180+Archkon@users.noreply.github.com> PR-URL: https://github.com/nodejs/node/pull/64601 Fixes: https://github.com/nodejs/node/issues/64600 Reviewed-By: James M Snell <jasnell@gmail.com> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/64601 Fixes: https://github.com/nodejs/node/issues/64600 Reviewed-By: James M Snell <jasnell@gmail.com> -------------------------------------------------------------------------------- [TypeError: Cannot read properties of null (reading 'oid')]https://github.com/nodejs/node/actions/runs/30968647815 |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
Member
|
I'm not sure that's the issue, cc @nodejs/node-core-utils |
avivkeller
approved these changes
Aug 7, 2026
Member
|
Maybe it was, however, the error message should be clearer, IMO |
This comment was marked as spam.
This comment was marked as spam.
Collaborator
Commit Queue failed- Loading data for nodejs/node/pull/64601 ✔ Done loading data for nodejs/node/pull/64601 ----------------------------------- PR info ------------------------------------ Title zlib: validate pledgedSrcSize for sync zstd (#64601) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch Archkon:zlib2 -> nodejs:main Labels c++, zlib, author ready, needs-ci Commits 1 - zlib: validate pledgedSrcSize for sync zstd Committers 1 - Archkon <180910180+Archkon@users.noreply.github.com> PR-URL: https://github.com/nodejs/node/pull/64601 Fixes: https://github.com/nodejs/node/issues/64600 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Aviv Keller <me@aviv.sh> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/64601 Fixes: https://github.com/nodejs/node/issues/64600 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Aviv Keller <me@aviv.sh> -------------------------------------------------------------------------------- ℹ This PR was created on Sun, 19 Jul 2026 14:30:06 GMT ✔ Approvals: 2 ✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/64601#pullrequestreview-4731028151 ✔ - Aviv Keller (@avivkeller): https://github.com/nodejs/node/pull/64601#pullrequestreview-4879565446 ✘ 2 GitHub CI job(s) failed: ✘ - aarch64-linux: with shared boringssl-0.20260526.0 / build: FAILURE (https://github.com/nodejs/node/actions/runs/30204628282/job/89800606890) ✘ - aarch64-linux: with shared boringssl-0.20260526.0 / build: FAILURE (https://github.com/nodejs/node/actions/runs/30205617244/job/89803411290) ✘ 13 GitHub CI job(s) cancelled: ✘ - test-tarball-linux: CANCELLED (https://github.com/nodejs/node/actions/runs/30204628218/job/89800769656) ✘ - coverage-linux: CANCELLED (https://github.com/nodejs/node/actions/runs/30204628224/job/89800445824) ✘ - test-linux (ubuntu-24.04-arm): CANCELLED (https://github.com/nodejs/node/actions/runs/30204628225/job/89800445627) ✘ - test-linux (ubuntu-24.04): CANCELLED (https://github.com/nodejs/node/actions/runs/30204628225/job/89800445648) ✘ - coverage-windows: CANCELLED (https://github.com/nodejs/node/actions/runs/30204628239/job/89800445756) ✘ - test-macOS: CANCELLED (https://github.com/nodejs/node/actions/runs/30204628245/job/89800445631) ✘ - x86_64-linux: with shared libraries / build: CANCELLED (https://github.com/nodejs/node/actions/runs/30204628282/job/89800571409) ✘ - x86_64-darwin: with shared libraries / build: CANCELLED (https://github.com/nodejs/node/actions/runs/30204628282/job/89800571452) ✘ - test-macOS: CANCELLED (https://github.com/nodejs/node/actions/runs/30205617143/job/89803043791) ✘ - test-linux (ubuntu-24.04-arm): CANCELLED (https://github.com/nodejs/node/actions/runs/30205617152/job/89803501621) ✘ - test-linux (ubuntu-24.04): CANCELLED (https://github.com/nodejs/node/actions/runs/30205617152/job/89803501631) ✘ - coverage-windows: CANCELLED (https://github.com/nodejs/node/actions/runs/30205617153/job/89803053112) ✘ - coverage-linux: CANCELLED (https://github.com/nodejs/node/actions/runs/30205617155/job/89803043995) ℹ Last Full PR CI on 2026-08-04T14:50:42Z: https://ci.nodejs.org/job/node-test-pull-request/75463/ - Querying data for job/node-test-pull-request/75463/ ✔ Build data downloaded ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/31256774273 |
This comment was marked as spam.
This comment was marked as spam.
avivkeller
pushed a commit
that referenced
this pull request
Aug 8, 2026
Zstd replaces a configured pledged source size with the input size when the first call to ZSTD_compressStream2() uses ZSTD_e_end. Track consumed input in Node and report ZSTD_error_srcSize_wrong when the completed frame does not match the original pledge. Signed-off-by: Archkon <180910180+Archkon@users.noreply.github.com> PR-URL: #64601 Fixes: #64600 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Aviv Keller <me@aviv.sh>
Member
|
Landed in c3de450 |
aduh95
pushed a commit
that referenced
this pull request
Aug 13, 2026
Zstd replaces a configured pledged source size with the input size when the first call to ZSTD_compressStream2() uses ZSTD_e_end. Track consumed input in Node and report ZSTD_error_srcSize_wrong when the completed frame does not match the original pledge. Signed-off-by: Archkon <180910180+Archkon@users.noreply.github.com> PR-URL: #64601 Fixes: #64600 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Aviv Keller <me@aviv.sh>
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.
Fixes: #64600