mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
17 lines
435 B
Plaintext
17 lines
435 B
Plaintext
import csharp
|
|
import Common
|
|
|
|
predicate step(DataFlow::Node pred, DataFlow::Node succ) {
|
|
DataFlow::localFlowStep(pred, succ) and
|
|
not succ instanceof NullGuardedDataFlowNode
|
|
}
|
|
|
|
from MyFlowSource source, DataFlow::Node sink, Access target
|
|
where
|
|
step+(source, sink) and
|
|
sink = DataFlow::exprNode(target) and
|
|
exists(MethodCall mc |
|
|
mc.getTarget().getUndecoratedName() = "Check" and mc.getAnArgument() = target
|
|
)
|
|
select sink
|