CodeQL library for C/C++
codeql/cpp-all 0.4.4 (changelog, source)
Search

Predicate shellCommandPreface

The name of a shell and the flag used to preface a command that should be parsed. Public for testing purposes.

Import path

import semmle.code.cpp.security.CommandExecution
predicate shellCommandPreface(string cmd, string flag)