Skip to content

Commit 45412fa

Browse files
committed
Cache hasLocalSource
1 parent c04e344 commit 45412fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowPublic.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ class LocalSourceNode extends Node {
121121
LocalSourceNode backtrack(TypeBackTracker t2, TypeBackTracker t) { t2 = t.step(result, this) }
122122
}
123123

124-
predicate hasLocalSource(Node sink, Node source) {
124+
cached
125+
private predicate hasLocalSource(Node sink, Node source) {
125126
// Declaring `source` to be a `SourceNode` currently causes a redundant check in the
126127
// recursive case, so instead we check it explicitly here.
127128
source = sink and

0 commit comments

Comments
 (0)