mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
Merge pull request #13916 from erik-krogh/limit-java-field-reg
Java: limit field flow when tracking regex strings
This commit is contained in:
@@ -148,6 +148,8 @@ private module RegexFlowConfig implements DataFlow::ConfigSig {
|
|||||||
predicate isBarrier(DataFlow::Node node) {
|
predicate isBarrier(DataFlow::Node node) {
|
||||||
node.getEnclosingCallable().getDeclaringType() instanceof NonSecurityTestClass
|
node.getEnclosingCallable().getDeclaringType() instanceof NonSecurityTestClass
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int fieldFlowBranchLimit() { result = 1 }
|
||||||
}
|
}
|
||||||
|
|
||||||
private module RegexFlow = DataFlow::Global<RegexFlowConfig>;
|
private module RegexFlow = DataFlow::Global<RegexFlowConfig>;
|
||||||
|
|||||||
Reference in New Issue
Block a user