...
Compliant Solution (POSIX) (ls)
In this compliant code examplesolution, the environment is first cleared out using clearenv() and then the $PATH and $IFS variables are set to safe values before invoking system().
...
...
In this compliant code examplesolution, the environment is first cleared out using clearenv() and then the $PATH and $IFS variables are set to safe values before invoking system().
...