File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
java/ql/lib/semmle/code/java/dataflow/internal Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,13 @@ private module Cached {
113
113
node .getEnclosingCallable ( ) .getDeclaringType ( ) instanceof NonSecurityTestClass or
114
114
node .asExpr ( ) instanceof ValidatedVariableAccess
115
115
}
116
+
117
+ /**
118
+ * Holds if `guard` should be a sanitizer guard in all global taint flow configurations
119
+ * but not in local taint.
120
+ */
121
+ cached
122
+ predicate defaultTaintSanitizerGuard ( DataFlow:: BarrierGuard guard ) { none ( ) }
116
123
}
117
124
118
125
import Cached
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ abstract class Configuration extends DataFlow::Configuration {
93
93
predicate isSanitizerGuard ( DataFlow:: BarrierGuard guard ) { none ( ) }
94
94
95
95
final override predicate isBarrierGuard ( DataFlow:: BarrierGuard guard ) {
96
- this .isSanitizerGuard ( guard )
96
+ this .isSanitizerGuard ( guard ) or defaultTaintSanitizerGuard ( guard )
97
97
}
98
98
99
99
/**
You can’t perform that action at this time.
0 commit comments