mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
docs: rename ql-training-rst > ql-training
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import cpp
|
||||
import semmle.code.cpp.dataflow.DataFlow
|
||||
import semmle.code.cpp.commons.Printf
|
||||
|
||||
class SourceNode extends DataFlow::Node { ... }
|
||||
|
||||
from FormattingFunction f, Call c, SourceNode src, DataFlow::Node arg
|
||||
where c.getTarget() = f and
|
||||
arg.asExpr() = c.getArgument(f.getFormatParameterIndex()) and
|
||||
DataFlow::localFlow(src, arg) and
|
||||
not src.asExpr() instanceof StringLiteral
|
||||
select arg, "Non-constant format string."
|
||||
Reference in New Issue
Block a user