mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
assume shell=False for subprocess calls, fixes FPs in e.g. youtube-dl
This commit is contained in:
@@ -41,4 +41,6 @@ def subprocess_flag (name):
|
||||
def indirect(flag, x):
|
||||
subprocess.run("ping " + x, shell=flag) # $result=BAD
|
||||
|
||||
indirect(True, name)
|
||||
indirect(True, name)
|
||||
|
||||
subprocess.Popen("ping " + name, shell=unknownValue) # OK - shell assumed to be False
|
||||
Reference in New Issue
Block a user