mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
13 lines
330 B
Plaintext
13 lines
330 B
Plaintext
import csharp
|
|
|
|
module ArrayFlowConfig implements DataFlow::ConfigSig {
|
|
predicate isSource(DataFlow::Node src) { src.asExpr() instanceof ObjectCreation }
|
|
|
|
predicate isSink(DataFlow::Node sink) {
|
|
exists(MethodCall mc |
|
|
mc.getTarget().hasUndecoratedName("Sink") and
|
|
mc.getAnArgument() = sink.asExpr()
|
|
)
|
|
}
|
|
}
|