Python: Fixes after changes to the flow summary API. · theinfosecguy/codeql@f9e1305 · GitHub
Skip to content

Commit f9e1305

Browse files
committed
Python: Fixes after changes to the flow summary API.
1 parent be56df7 commit f9e1305

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

‎python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll‎

Lines changed: 1 addition & 1 deletion

‎python/ql/lib/semmle/python/dataflow/new/internal/FlowSummaryImpl.qll‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ module Input implements InputSig<Location, DataFlowImplSpecific::PythonDataFlow>
2020

2121
class SinkBase = Void;
2222

23+
class FlowSummaryCallBase = Void;
24+
2325
predicate callableFromSource(SummarizedCallableBase c) { none() }
2426

2527
ArgumentPosition callbackSelfParameterPosition() { result.isLambdaSelf() }
@@ -109,6 +111,10 @@ module Input implements InputSig<Location, DataFlowImplSpecific::PythonDataFlow>
109111
private import Make<Location, DataFlowImplSpecific::PythonDataFlow, Input> as Impl
110112

111113
private module StepsInput implements Impl::Private::StepsInputSig {
114+
Impl::Private::SummaryNode getSummaryNode(Node n) {
115+
result = n.(FlowSummaryNode).getSummaryNode()
116+
}
117+
112118
overlay[global]
113119
DataFlowCall getACall(Public::SummarizedCallable sc) {
114120
result =

‎python/ql/lib/semmle/python/dataflow/new/internal/TaintTrackingPrivate.qll‎

Lines changed: 2 additions & 4 deletions

0 commit comments

Comments
 (0)