From 475afbc7ceef952b9c94369f5ef1e8baa8c3d151 Mon Sep 17 00:00:00 2001 From: mykola2312 <49044616+mykola2312@users.noreply.github.com> 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,