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 {
113113 node .getEnclosingCallable ( ) .getDeclaringType ( ) instanceof NonSecurityTestClass or
114114 node .asExpr ( ) instanceof ValidatedVariableAccess
115115 }
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 ( ) }
116123}
117124
118125import Cached
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ abstract class Configuration extends DataFlow::Configuration {
9393 predicate isSanitizerGuard ( DataFlow:: BarrierGuard guard ) { none ( ) }
9494
9595 final override predicate isBarrierGuard ( DataFlow:: BarrierGuard guard ) {
96- this .isSanitizerGuard ( guard )
96+ this .isSanitizerGuard ( guard ) or defaultTaintSanitizerGuard ( guard )
9797 }
9898
9999 /**
You can’t perform that action at this time.
0 commit comments