limit field flow when tracking regex strings in Java

This commit is contained in:
erik-krogh
2023-08-08 09:01:23 +02:00
parent 022a06659c
commit 45c39e6072

View File

@@ -148,6 +148,8 @@ private module RegexFlowConfig implements DataFlow::ConfigSig {
predicate isBarrier(DataFlow::Node node) {
node.getEnclosingCallable().getDeclaringType() instanceof NonSecurityTestClass
}
int fieldFlowBranchLimit() { result = 1 }
}
private module RegexFlow = DataFlow::Global<RegexFlowConfig>;