We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
extend
1 parent ab3a62d commit 88b5d4dCopy full SHA for 88b5d4d
ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowDispatch.qll
@@ -299,7 +299,7 @@ pragma[nomagic]
299
private predicate extendCall(DataFlow::ExprNode receiver, Module m) {
300
exists(DataFlow::CallNode extendCall |
301
extendCall.getMethodName() = "extend" and
302
- exists(DataFlow::LocalSourceNode sourceNode | sourceNode.flowsTo(extendCall.getArgument(0)) |
+ exists(DataFlow::LocalSourceNode sourceNode | sourceNode.flowsTo(extendCall.getArgument(_)) |
303
selfInModule(sourceNode.(SsaSelfDefinitionNode).getVariable(), m) or
304
m = resolveConstantReadAccess(sourceNode.asExpr().getExpr())
305
) and
0 commit comments