File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
ruby/ql/lib/codeql/ruby/dataflow/internal Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -144,12 +144,13 @@ module LocalFlow {
144
144
* This is intended to recover from flow not currently recognised by ordinary capture flow.
145
145
*/
146
146
predicate localFlowSsaParamCaptureInput ( Node nodeFrom , Node nodeTo ) {
147
- exists ( Ssa:: CapturedEntryDefinition def |
148
- nodeFrom .asParameter ( ) .( NamedParameter ) .getVariable ( ) = def .getSourceVariable ( )
149
- or
150
- nodeFrom .( SelfParameterNode ) .getSelfVariable ( ) = def .getSourceVariable ( )
151
- |
147
+ exists ( Ssa:: CapturedEntryDefinition def , ParameterNodeImpl p |
148
+ ( nodeFrom = p or LocalFlow:: localFlowSsaParamInput ( p , nodeFrom ) ) and
152
149
nodeTo .( SsaDefinitionExtNode ) .getDefinitionExt ( ) = def
150
+ |
151
+ p .getParameter ( ) .( NamedParameter ) .getVariable ( ) = def .getSourceVariable ( )
152
+ or
153
+ p .( SelfParameterNode ) .getSelfVariable ( ) = def .getSourceVariable ( )
153
154
)
154
155
}
155
156
You can’t perform that action at this time.
0 commit comments