The problem here is not necessarily an input validation problem. Thesystem call's function is to execute a command specified in a string.The problem, in this case, is the context of the call. The ...
One of the key benefits of the C language, which is the reason it is so popular for embedded applications, is that it is a high-level, structured programming language, but has low-level capabilities.