Skip to content

Commit 382382f

Browse files
committed
rb
1 parent 97bd912 commit 382382f

3 files changed

Lines changed: 12 additions & 9 deletions

File tree

ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowPrivate.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ module LocalFlow {
198198
FlowSummaryNode nodeFrom, FlowSummaryNode nodeTo, FlowSummaryImpl::Public::SummarizedCallable c,
199199
string model
200200
) {
201-
FlowSummaryImpl::Private::Steps::summaryLocalStep(nodeFrom, nodeTo.getSummaryNode(), true, model) and
201+
FlowSummaryImpl::Private::Steps::summaryLocalStep(nodeFrom, nodeTo, true, model) and
202202
c = nodeFrom.getSummarizedCallable()
203203
}
204204

@@ -1760,8 +1760,7 @@ import OutNodes
17601760
predicate jumpStep(Node pred, Node succ) {
17611761
succ.asExpr().getExpr().(ConstantReadAccess).getValue() = pred.asExpr().getExpr()
17621762
or
1763-
FlowSummaryImpl::Private::Steps::summaryJumpStep(pred.(FlowSummaryNode).getSummaryNode(),
1764-
succ.(FlowSummaryNode).getSummaryNode())
1763+
FlowSummaryImpl::Private::Steps::summaryJumpStep(pred, succ)
17651764
or
17661765
any(AdditionalJumpStep s).step(pred, succ)
17671766
or

ruby/ql/lib/codeql/ruby/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,15 +179,20 @@ private module Input2 implements Impl::Private::InputSig2 {
179179
DataFlowCallable getEnclosingCallable() { none() }
180180
}
181181

182-
bindingset[source, s]
183182
SourceSinkReportingElement getSourceEntryElement(
184-
Impl::Public::SourceElement source, Impl::Private::SummaryComponentStack s
183+
Impl::Public::SourceElement source, Impl::Private::SummaryComponent sc
185184
) {
186185
none()
187186
}
188187

189-
bindingset[e, s]
190-
Node getSourceExitNode(SourceSinkReportingElement e, Impl::Private::SummaryComponentStack s) {
188+
SourceSinkReportingElement getNextElement(
189+
SourceSinkReportingElement prev, Impl::Private::SummaryComponent sc
190+
) {
191+
none()
192+
}
193+
194+
bindingset[e, sc]
195+
Node getSourceExitNode(SourceSinkReportingElement e, Impl::Private::SummaryComponent sc) {
191196
none()
192197
}
193198

ruby/ql/lib/codeql/ruby/dataflow/internal/TaintTrackingPrivate.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ private module Cached {
109109
) and
110110
model = ""
111111
or
112-
FlowSummaryImpl::Private::Steps::summaryLocalStep(nodeFrom,
113-
nodeTo.(FlowSummaryNode).getSummaryNode(), false, model)
112+
FlowSummaryImpl::Private::Steps::summaryLocalStep(nodeFrom, nodeTo, false, model)
114113
or
115114
any(FlowSteps::AdditionalTaintStep s).step(nodeFrom, nodeTo) and model = "AdditionalTaintStep"
116115
or

0 commit comments

Comments
 (0)