-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
[v24.x] deps: patch npm/tar to not return uninitialized mem #60430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Review requested:
|
|
Fast-track has been requested by @nodejs-github-bot. Please 👍 to approve. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we apply this diff also to
node/deps/corepack/dist/lib/corepack.cjs
Lines 15506 to 15508 in 82fc81c
| const buf = Buffer.allocUnsafe(stat.size); | |
| import_node_fs.default.readSync(fd, buf, 0, stat.size, 0); | |
| p.end(buf); |
|
@aduh95 this PR targets 24.x branch. |
|
If |
|
@aduh95 is there a reason to bypass the regular procedure in main? |
|
@aduh95 also pls fell free to retarget this to the correct branch / force-push to my branch, I'm out of context of the staging branches |
The regular procedure is for changes to first land upstream, then it can be cherry-picked to |
Only if we we want to merge the non zero-filling behavior to 24 asap. It's not needed otherwise |
|
See #60012 (comment) I also rechecked the usage (so it was now checked by 2 people), |
This goes against the npm update procedure but we don't have much time before LTS to revert zero-filling to wait for isaacs/node-tar#446,
tarandnpmreleasesAn alternative is to force
.allocinstead of.allocUnsafethereRefs:
js/file-system-race(CWE-367) security issue isaacs/node-tar#444