Skip to content

Commit 45c39e6

Browse files
committed
limit field flow when tracking regex strings in Java
1 parent 022a066 commit 45c39e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

java/ql/lib/semmle/code/java/regex/RegexFlowConfigs.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ private module RegexFlowConfig implements DataFlow::ConfigSig {
148148
predicate isBarrier(DataFlow::Node node) {
149149
node.getEnclosingCallable().getDeclaringType() instanceof NonSecurityTestClass
150150
}
151+
152+
int fieldFlowBranchLimit() { result = 1 }
151153
}
152154

153155
private module RegexFlow = DataFlow::Global<RegexFlowConfig>;

0 commit comments

Comments
 (0)