forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove shell=True for node subprocesses
shell=True is a security hazard per the Python documentation: https://docs.python.org/2/library/subprocess.html#frequently-used-arguments This has 2 effects that required changes in scripts: 1. The shell removes extraneous quotes from arguments, which we now should no longer include in any argument passed in 2. The shell now requires an array of arguments, rather than a string Next to that, removal of shell=True is required if we later want to call the script as part of a GN action. R=tapted@chromium.org,dpapad@chromium.org Bug: 1096473 Change-Id: I77e85048e5a6db33035ca774434857170aeaf91e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2264365 Reviewed-by: dpapad <dpapad@chromium.org> Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org> Cr-Commit-Position: refs/heads/master@{#782918}
- Loading branch information
1 parent
1cbf830
commit 7ff9f36
Showing
3 changed files
with
17 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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