CodeQL library for C/C++
codeql/cpp-all 2.0.3-dev (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)