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 {
199199/** A collection of cached types and predicates to be evaluated in the same stage. */
200200cached
201201private module Cached {
202+ private import TaintTrackingPrivate as TaintTrackingPrivate
203+
202204 cached
203205 newtype TNode =
204- TExprNode ( CfgNodes:: ExprCfgNode n ) or
206+ TExprNode ( CfgNodes:: ExprCfgNode n ) { TaintTrackingPrivate :: forceCachingInSameStage ( ) } or
205207 TReturningNode ( CfgNodes:: ReturningCfgNode n ) or
206208 TSynthReturnNode ( CfgScope scope , ReturnKind kind ) {
207209 exists ( ReturningNode ret |
Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ private CfgNodes::ExprNodes::VariableWriteAccessCfgNode variablesInPattern(
6868
6969cached
7070private module Cached {
71+ cached
72+ predicate forceCachingInSameStage ( ) { any ( ) }
73+
7174 /**
7275 * Holds if the additional step from `nodeFrom` to `nodeTo` should be included
7376 * in all global taint flow configurations.
You can’t perform that action at this time.
0 commit comments