Skip to content

Commit 8af8cae

Browse files
committed
C++
1 parent d4b10dd commit 8af8cae

4 files changed

Lines changed: 12 additions & 10 deletions

File tree

cpp/ql/lib/semmle/code/cpp/dataflow/internal/FlowSummaryImpl.qll

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

146-
bindingset[source, s]
147146
SourceSinkReportingElement getSourceEntryElement(
148-
Impl::Public::SourceElement source, Impl::Private::SummaryComponentStack s
147+
Impl::Public::SourceElement source, Impl::Private::SummaryComponent sc
149148
) {
150149
none()
151150
}
152151

153-
bindingset[e, s]
154-
Node getSourceExitNode(SourceSinkReportingElement e, Impl::Private::SummaryComponentStack s) {
152+
SourceSinkReportingElement getNextElement(
153+
SourceSinkReportingElement prev, Impl::Private::SummaryComponent sc
154+
) {
155+
none()
156+
}
157+
158+
bindingset[e, sc]
159+
Node getSourceExitNode(SourceSinkReportingElement e, Impl::Private::SummaryComponent sc) {
155160
none()
156161
}
157162

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowPrivate.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ private module Cached {
119119
)
120120
or
121121
// models-as-data summarized flow
122-
FlowSummaryImpl::Private::Steps::summaryJumpStep(n1.(FlowSummaryNode).getSummaryNode(),
123-
n2.(FlowSummaryNode).getSummaryNode())
122+
FlowSummaryImpl::Private::Steps::summaryJumpStep(n1, n2)
124123
}
125124

126125
/**

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,7 @@ private module Cached {
158158
model = ""
159159
or
160160
// models-as-data summarized flow
161-
FlowSummaryImpl::Private::Steps::summaryLocalStep(nodeFrom,
162-
nodeTo.(FlowSummaryNode).getSummaryNode(), true, model)
161+
FlowSummaryImpl::Private::Steps::summaryLocalStep(nodeFrom, nodeTo, true, model)
163162
}
164163

165164
private predicate simpleInstructionLocalFlowStep(Operand opFrom, Instruction iTo) {

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/TaintTrackingUtil.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ private module Cached {
6767
model = ""
6868
or
6969
// models-as-data summarized flow
70-
FlowSummaryImpl::Private::Steps::summaryLocalStep(nodeFrom,
71-
nodeTo.(FlowSummaryNode).getSummaryNode(), false, model)
70+
FlowSummaryImpl::Private::Steps::summaryLocalStep(nodeFrom, nodeTo, false, model)
7271
or
7372
// object->field conflation for content that is a `TaintInheritingContent`.
7473
exists(DataFlow::ContentSet f |

0 commit comments

Comments
 (0)