We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45b627d commit b3b139bCopy full SHA for b3b139b
java/ql/lib/semmle/code/java/security/SqlConcatenatedQuery.qll
@@ -24,6 +24,15 @@ module UncontrolledStringBuilderSourceFlowConfig implements DataFlow::ConfigSig
24
predicate isSink(DataFlow::Node sink) { sink instanceof QueryInjectionSink }
25
26
predicate isBarrier(DataFlow::Node node) { node instanceof SimpleTypeSanitizer }
27
+
28
+ predicate observeDiffInformedIncrementalMode() { any() }
29
30
+ Location getASelectedSourceLocation(DataFlow::Node source) {
31
+ exists(Expr uncontrolled, StringBuilderVar sbv | result = uncontrolled.getLocation() |
32
+ uncontrolledStringBuilderQuery(sbv, uncontrolled) and
33
+ source = DataFlow::exprNode(sbv.getToStringCall())
34
+ )
35
+ }
36
}
37
38
/**
0 commit comments