mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 19:21:31 +06:00
Remove shell=True from subprocess.Popen to Mitigate Security Risk (#28299)
Remove shell=True from subprocess.Popen to mitigate security risk
This commit is contained in:
parent
87a6cf41d0
commit
2272ab57a9
@ -56,7 +56,7 @@ def export_with_optimum(args):
|
||||
f"--framework {args.framework}" if args.framework is not None else "",
|
||||
f"{args.output}",
|
||||
]
|
||||
proc = subprocess.Popen(" ".join(cmd_line), stdout=subprocess.PIPE, shell=True)
|
||||
proc = subprocess.Popen(cmd_line, stdout=subprocess.PIPE)
|
||||
proc.wait()
|
||||
|
||||
logger.info(
|
||||
|
Loading…
Reference in New Issue
Block a user