Skip to content

Commit f75b110

Browse files
committed
warn about system()/popen()
1 parent d0d81e0 commit f75b110

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

proc.tex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,11 @@
636636
set to the UID of the executable program owner.
637637
\item Today's systems can also execute scripts that start with a line:\\
638638
\texttt{\#!/\emph{interpreter\_path}/\emph{interpreter\_name} \emph{[args]}}
639+
\item The \texttt{system} or \texttt{popen} library calls are more
640+
straightforward to use, however they more often than not execute a shell,
641+
which might have security implications (shell expansion of arguments,
642+
environment variables, command injection, etc.), so generally it is better
643+
to avoid them.
639644
\end{itemize}
640645

641646
%%%%%

0 commit comments

Comments
 (0)