File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
csharp/ql/src/utils/modelgenerator/internal Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -225,6 +225,10 @@ module FromSourceConfig implements DataFlow::ConfigSig {
225
225
226
226
DataFlow:: FlowFeature getAFeature ( ) { result instanceof DataFlow:: FeatureHasSinkCallContext }
227
227
228
+ predicate isBarrier ( DataFlow:: Node n ) {
229
+ exists ( Type t | t = n .getType ( ) and not isRelevantType ( t ) )
230
+ }
231
+
228
232
predicate isAdditionalFlowStep ( DataFlow:: Node node1 , DataFlow:: Node node2 ) {
229
233
isRelevantTaintStep ( node1 , node2 )
230
234
}
@@ -257,7 +261,11 @@ module PropagateToSinkConfig implements DataFlow::ConfigSig {
257
261
258
262
predicate isSink ( DataFlow:: Node sink ) { ExternalFlow:: sinkNode ( sink , _) }
259
263
260
- predicate isBarrier ( DataFlow:: Node node ) { sinkModelSanitizer ( node ) }
264
+ predicate isBarrier ( DataFlow:: Node node ) {
265
+ exists ( Type t | t = node .getType ( ) and not isRelevantType ( t ) )
266
+ or
267
+ sinkModelSanitizer ( node )
268
+ }
261
269
262
270
DataFlow:: FlowFeature getAFeature ( ) { result instanceof DataFlow:: FeatureHasSourceCallContext }
263
271
You can’t perform that action at this time.
0 commit comments