Skip to content

Commit 5a8c2c9

Browse files
committed
Ruby: MissingFullAnchor
1 parent 83586ff commit 5a8c2c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/ql/lib/codeql/ruby/security/regexp/MissingFullAnchorQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ private module MissingFullAnchorConfig implements DataFlow::ConfigSig {
1919
predicate isBarrier(DataFlow::Node node) { node instanceof Sanitizer }
2020

2121
predicate observeDiffInformedIncrementalMode() {
22-
any() // TODO: Make sure that the location overrides match the query's select clause: Column 7 selects sink.getCallNode (/Users/d10c/src/semmle-code/ql/ruby/ql/src/queries/security/cwe-020/MissingFullAnchor.ql@20:41:20:62), Column 9 selects sink.getRegex (/Users/d10c/src/semmle-code/ql/ruby/ql/src/queries/security/cwe-020/MissingFullAnchor.ql@20:76:20:94)
22+
none() // can't be made diff-informed because the locations of Ruby RegExpTerms aren't correct when the regexp is parsed from a string arising from constant folding
2323
}
2424
}
2525

0 commit comments

Comments
 (0)