File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
ruby/ql/lib/codeql/ruby/dataflow/internal Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -199,9 +199,11 @@ private class Argument extends CfgNodes::ExprCfgNode {
199
199
/** A collection of cached types and predicates to be evaluated in the same stage. */
200
200
cached
201
201
private module Cached {
202
+ private import TaintTrackingPrivate as TaintTrackingPrivate
203
+
202
204
cached
203
205
newtype TNode =
204
- TExprNode ( CfgNodes:: ExprCfgNode n ) or
206
+ TExprNode ( CfgNodes:: ExprCfgNode n ) { TaintTrackingPrivate :: forceCachingInSameStage ( ) } or
205
207
TReturningNode ( CfgNodes:: ReturningCfgNode n ) or
206
208
TSynthReturnNode ( CfgScope scope , ReturnKind kind ) {
207
209
exists ( ReturningNode ret |
Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ private CfgNodes::ExprNodes::VariableWriteAccessCfgNode variablesInPattern(
68
68
69
69
cached
70
70
private module Cached {
71
+ cached
72
+ predicate forceCachingInSameStage ( ) { any ( ) }
73
+
71
74
/**
72
75
* Holds if the additional step from `nodeFrom` to `nodeTo` should be included
73
76
* in all global taint flow configurations.
You can’t perform that action at this time.
0 commit comments