File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
powershell/ql/lib/semmle/code/powershell Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,14 @@ private import DataFlowImplSpecific::Private
1010private import DataFlowImplSpecific:: Public
1111
1212module Input implements InputSig< Location , DataFlowImplSpecific:: PowershellDataFlow > {
13+ private import codeql.util.Void
14+
1315 class SummarizedCallableBase = string ;
1416
17+ class SourceBase = Void ;
18+
19+ class SinkBase = Void ;
20+
1521 ArgumentPosition callbackSelfParameterPosition ( ) { none ( ) }
1622
1723 ReturnKind getStandardReturnValueKind ( ) { result instanceof NormalReturnKind }
@@ -114,6 +120,10 @@ private module StepsInput implements Impl::Private::StepsInputSig {
114120 or
115121 result .asCall ( ) .getAstNode ( ) = sc .( LibraryCallable ) .getACallSimple ( )
116122 }
123+
124+ Node getSourceNode ( Input:: SourceBase source , Impl:: Private:: SummaryComponent sc ) { none ( ) }
125+
126+ Node getSinkNode ( Input:: SinkBase source , Impl:: Private:: SummaryComponent sc ) { none ( ) }
117127}
118128
119129module Private {
Original file line number Diff line number Diff line change 33 * for tracking types.
44 */
55
6+ private import powershell
67private import semmle.code.powershell.typetracking.internal.TypeTrackingImpl as Impl
7- import Impl:: Shared:: TypeTracking< Impl:: TypeTrackingInput >
8+ import Impl:: Shared:: TypeTracking< Location , Impl:: TypeTrackingInput >
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ private module TypeTrackerSummaryFlow = SummaryTypeTracker::SummaryFlow<SummaryT
157157
158158private newtype TContentFilter = MkElementFilter ( )
159159
160- module TypeTrackingInput implements Shared:: TypeTrackingInput {
160+ module TypeTrackingInput implements Shared:: TypeTrackingInput< Location > {
161161 class Node = DataFlowPublic:: Node ;
162162
163163 class LocalSourceNode = DataFlowPublic:: LocalSourceNode ;
@@ -295,4 +295,4 @@ module TypeTrackingInput implements Shared::TypeTrackingInput {
295295 predicate hasFeatureBacktrackStoreTarget ( ) { none ( ) }
296296}
297297
298- import SharedImpl:: TypeTracking< TypeTrackingInput >
298+ import SharedImpl:: TypeTracking< Location , TypeTrackingInput >
You can’t perform that action at this time.
0 commit comments