C++: new helper predicates in ScanfFunctionCall · redsun82/codeql@d8800c0 · GitHub
Skip to content

Commit d8800c0

Browse files
committed
C++: new helper predicates in ScanfFunctionCall
Extract some of the logic from the `cpp/missing-check-scanf` query into the more generally useful `getOutputArgument(int index)`, `getAnOutputArgument()`, and `getNumberOfOutputArguments()` predicates.
1 parent 5c894ae commit d8800c0

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

‎cpp/ql/lib/semmle/code/cpp/commons/Scanf.qll‎

Lines changed: 22 additions & 0 deletions

‎cpp/ql/src/Critical/MissingCheckScanf.ql‎

Lines changed: 1 addition & 2 deletions

0 commit comments

Comments
 (0)