File tree 3 files changed +14
-3
lines changed
powershell/ql/lib/semmle/code/powershell
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
10
10
private import DataFlowImplSpecific:: Public
11
11
12
12
module Input implements InputSig< Location , DataFlowImplSpecific:: PowershellDataFlow > {
13
+ private import codeql.util.Void
14
+
13
15
class SummarizedCallableBase = string ;
14
16
17
+ class SourceBase = Void ;
18
+
19
+ class SinkBase = Void ;
20
+
15
21
ArgumentPosition callbackSelfParameterPosition ( ) { none ( ) }
16
22
17
23
ReturnKind getStandardReturnValueKind ( ) { result instanceof NormalReturnKind }
@@ -114,6 +120,10 @@ private module StepsInput implements Impl::Private::StepsInputSig {
114
120
or
115
121
result .asCall ( ) .getAstNode ( ) = sc .( LibraryCallable ) .getACallSimple ( )
116
122
}
123
+
124
+ Node getSourceNode ( Input:: SourceBase source , Impl:: Private:: SummaryComponent sc ) { none ( ) }
125
+
126
+ Node getSinkNode ( Input:: SinkBase source , Impl:: Private:: SummaryComponent sc ) { none ( ) }
117
127
}
118
128
119
129
module Private {
Original file line number Diff line number Diff line change 3
3
* for tracking types.
4
4
*/
5
5
6
+ private import powershell
6
7
private 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
157
157
158
158
private newtype TContentFilter = MkElementFilter ( )
159
159
160
- module TypeTrackingInput implements Shared:: TypeTrackingInput {
160
+ module TypeTrackingInput implements Shared:: TypeTrackingInput< Location > {
161
161
class Node = DataFlowPublic:: Node ;
162
162
163
163
class LocalSourceNode = DataFlowPublic:: LocalSourceNode ;
@@ -295,4 +295,4 @@ module TypeTrackingInput implements Shared::TypeTrackingInput {
295
295
predicate hasFeatureBacktrackStoreTarget ( ) { none ( ) }
296
296
}
297
297
298
- import SharedImpl:: TypeTracking< TypeTrackingInput >
298
+ import SharedImpl:: TypeTracking< Location , TypeTrackingInput >
You can’t perform that action at this time.
0 commit comments