mirror of https://github.com/lukechilds/node.git
Browse Source
Mutations of the environment can invalidate pointers to environment variables, so make `secure_getenv()` copy them out instead of returning pointers. This is the part of https://github.com/nodejs/node/pull/11051 that applies to be11fb48d2f1b3f6. This part wasn't backported to 6.x when #11051 was backported because the semver-minor introduction of NODE_REDIRECT_WARNINGS hadn't been backported yet. Now that the env var is backported, this last bit of #11051 is needed. PR-URL: https://github.com/nodejs/node/pull/12677 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>v6.x-staging
Sam Roberts
7 years ago
committed by
Myles Borins
3 changed files with 8 additions and 8 deletions
Loading…
Reference in new issue