CodeQL library for C/C++
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)