From a1515522a4eb06e7caee965653f59ad8ce724b9e Mon Sep 17 00:00:00 2001 From: mykola2312 Date: Sat, 24 Feb 2024 14:55:37 +0200 Subject: [PATCH] add warning to spawn function --- src/dl/spawn.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dl/spawn.rs b/src/dl/spawn.rs index ba2f2f6..dd0a5bd 100644 --- a/src/dl/spawn.rs +++ b/src/dl/spawn.rs @@ -34,6 +34,8 @@ impl fmt::Display for SpawnError { } } +/* !!! The argument list could be exploited in a way to inject malicious arguments !!! + !!! and alter the way program executes and/or gain access to system !!! */ pub async fn spawn(program: &str, args: I) -> Result where I: IntoIterator,