Skip to content

Commit f516ccb

Browse files
committed
limit the fieldFlowBranchLimit for the regexp tracker to improve performance
1 parent 2fceee4 commit f516ccb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ruby/ql/lib/codeql/ruby/regexp/internal/RegExpConfiguration.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ class RegExpConfiguration extends Configuration {
8181
nodeTo.asExpr().(CfgNodes::ExprNodes::StringlikeLiteralCfgNode).getAComponent()
8282
)
8383
}
84+
85+
override int fieldFlowBranchLimit() { result = 1 }
8486
}
8587

8688
private DataFlow::LocalSourceNode trackRegexpType(TypeTracker t) {

0 commit comments

Comments
 (0)