Skip to content

Commit 4ce19bb

Browse files
committed
Ruby: Restrict ap len to 1 for regex tracking.
1 parent 23a518f commit 4ce19bb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ private module RegexConfig implements DataFlow::StateConfigSig {
9797
node2.asExpr().(CfgNodes::ExprNodes::StringlikeLiteralCfgNode).getAComponent()
9898
)
9999
}
100+
101+
int accessPathLimit() { result = 1 }
100102
}
101103

102104
private module RegexTracking = DataFlow::GlobalWithState<RegexConfig>;

0 commit comments

Comments
 (0)