Skip to content

Commit 6f7e0d6

Browse files
committed
Ruby: mass enable diff-informed data flow none() location overrides
An auto-generated patch that enables diff-informed data flow in the obvious cases. Adds `getASelected{Source,Sink}Location() { none() }` override to queries that select a dataflow source or sink as a location, but not both.
1 parent fb0f12b commit 6f7e0d6

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

ruby/ql/src/experimental/manually-check-http-verb/ManuallyCheckHttpVerb.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ private module HttpVerbConfig implements DataFlow::ConfigSig {
8888
}
8989

9090
predicate observeDiffInformedIncrementalMode() { any() }
91+
92+
Location getASelectedSourceLocation(DataFlow::Node source) { none() }
9193
}
9294

9395
private module HttpVerbFlow = TaintTracking::Global<HttpVerbConfig>;

ruby/ql/src/experimental/weak-params/WeakParams.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ private module WeakParamsConfig implements DataFlow::ConfigSig {
4848
predicate isSink(DataFlow::Node node) { node = any(PersistentWriteAccess a).getValue() }
4949

5050
predicate observeDiffInformedIncrementalMode() { any() }
51+
52+
Location getASelectedSourceLocation(DataFlow::Node source) { none() }
5153
}
5254

5355
private module WeakParamsFlow = TaintTracking::Global<WeakParamsConfig>;

ruby/ql/src/queries/meta/TaintedNodes.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ private module BasicTaintConfig implements DataFlow::ConfigSig {
2121
}
2222

2323
predicate observeDiffInformedIncrementalMode() { any() }
24+
25+
Location getASelectedSourceLocation(DataFlow::Node source) { none() }
2426
}
2527

2628
private module BasicTaintFlow = TaintTracking::Global<BasicTaintConfig>;

0 commit comments

Comments
 (0)