mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Adapt query not to depend on TaintTracking::FunctionModel
This commit is contained in:
@@ -106,7 +106,10 @@ class PrivateUrlFlowsToAuthCodeUrlCall extends DataFlow::Configuration {
|
||||
TaintTracking::referenceStep(pred, succ)
|
||||
or
|
||||
// Propagate across Sprintf and similar calls
|
||||
any(Fmt::AppenderOrSprinter s).taintStep(pred, succ)
|
||||
exists(DataFlow::CallNode cn |
|
||||
cn.getACalleeIncludingExternals().asFunction() instanceof Fmt::AppenderOrSprinter |
|
||||
pred = cn.getAnArgument() and succ = cn.getResult()
|
||||
)
|
||||
}
|
||||
|
||||
predicate isSinkCall(DataFlow::Node sink, DataFlow::CallNode call) {
|
||||
|
||||
Reference in New Issue
Block a user