-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: potential null dereference in normalizeSpawnArguments() patch #42260
fix: potential null dereference in normalizeSpawnArguments() patch #42260
Conversation
Use upstream's practice of using `env = options.env || process.env`. Previously, we were unconditionally assigning CRASHDUMP_SIGNAL_FD and CRASHPAD_HANDLER_PID to options.env.
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.
Thanks!
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.
Thanks!
No Release Notes |
I was unable to backport this PR to "29-x-y" cleanly; |
I was unable to backport this PR to "30-x-y" cleanly; |
I was unable to backport this PR to "31-x-y" cleanly; |
Description of Change
The old version of this patch has code that can call
options.env.foo = bar
even ifoptions.env
is null. This PR moves the pre-existing upstream Node lineconst env = options.env || process.env
to be declared earlier in the function so that we can useenv
safely here.CC @deepak1556, @mlaurencin since this upstreams a minor cleanup from the Microsoft build's patchset
CC @VerteDinde -- Keeley, I can't tell if you wrote the patch but your name is in the
From:
header so you're a stakeholder 馃樃Checklist
npm test
passesRelease Notes
Notes: none