Unverified Commit 2272ab57 authored by Avimanyu Bandyopadhyay's avatar Avimanyu Bandyopadhyay Committed by GitHub
Browse files

Remove shell=True from subprocess.Popen to Mitigate Security Risk (#28299)

Remove shell=True from subprocess.Popen to mitigate security risk
parent 87a6cf41
...@@ -56,7 +56,7 @@ def export_with_optimum(args): ...@@ -56,7 +56,7 @@ def export_with_optimum(args):
f"--framework {args.framework}" if args.framework is not None else "", f"--framework {args.framework}" if args.framework is not None else "",
f"{args.output}", f"{args.output}",
] ]
proc = subprocess.Popen(" ".join(cmd_line), stdout=subprocess.PIPE, shell=True) proc = subprocess.Popen(cmd_line, stdout=subprocess.PIPE)
proc.wait() proc.wait()
logger.info( logger.info(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment