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 5bebae9 commit 2b1c70cCopy full SHA for 2b1c70c
java/ql/lib/semmle/code/java/security/regexp/PolynomialReDoSQuery.qll
@@ -47,6 +47,18 @@ module PolynomialRedosConfig implements DataFlow::ConfigSig {
47
node instanceof SimpleTypeSanitizer or
48
node.asExpr().(MethodCall).getMethod() instanceof LengthRestrictedMethod
49
}
50
+
51
+ predicate observeDiffInformedIncrementalMode() { any() }
52
53
+ Location getASelectedSinkLocation(DataFlow::Node sink) {
54
+ exists(SuperlinearBackTracking::PolynomialBackTrackingTerm regexp |
55
+ regexp.getRootTerm() = sink.(PolynomialRedosSink).getRegExp()
56
+ |
57
+ result = sink.getLocation()
58
+ or
59
+ result = regexp.getLocation()
60
+ )
61
+ }
62
63
64
module PolynomialRedosFlow = TaintTracking::Global<PolynomialRedosConfig>;
0 commit comments