mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Java: Introduce SsaCapturedDefinition and replace uses of getAnUltimateDefinition.
This commit is contained in:
@@ -277,10 +277,7 @@ private module SinkModelGeneratorInput implements SinkModelGeneratorInputSig {
|
||||
|
||||
predicate sinkModelSanitizer(DataFlow::Node node) {
|
||||
// exclude variable capture jump steps
|
||||
exists(Ssa::SsaImplicitInit closure |
|
||||
closure.captures(_) and
|
||||
node.asExpr() = Ssa::ssaGetAFirstUse(closure)
|
||||
)
|
||||
exists(Ssa::SsaCapturedDefinition closure | node.asExpr() = Ssa::ssaGetAFirstUse(closure))
|
||||
}
|
||||
|
||||
predicate apiSource(DataFlow::Node source) {
|
||||
|
||||
Reference in New Issue
Block a user