Skip to content

Commit 3a3586f

Browse files
committed
Restrict type to MethodCallCfgNode
1 parent b16b95e commit 3a3586f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ql/src/codeql_ruby/typetracking/TypeTrackerSpecific.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ predicate returnStep(DataFlowPrivate::ReturnNode nodeFrom, Node nodeTo) {
7272
*/
7373
predicate basicStoreStep(Node nodeFrom, LocalSourceNode nodeTo, string content) {
7474
// TODO: support SetterMethodCall inside TuplePattern
75-
exists(ExprNodes::AssignmentCfgNode assignment, ExprNodes::CallCfgNode call |
75+
exists(ExprNodes::AssignmentCfgNode assignment, ExprNodes::MethodCallCfgNode call |
7676
assignment.getLhs() = call and
7777
content = getSetterCallAttributeName(call.getExpr()) and
7878
nodeTo.(DataFlowPublic::ExprNode).getExprNode() = call.getReceiver() and

0 commit comments

Comments
 (0)