File tree Expand file tree Collapse file tree
src/experimental/dataflow/internal
test/experimental/dataflow/tainttracking/customSanitizer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,8 +157,8 @@ class GuardNode extends ControlFlowNode {
157157
158158 GuardNode ( ) { this = conditionBlock .getLastNode ( ) }
159159
160- predicate controlsNode ( ControlFlowNode node , boolean testIsTrue ) {
161- conditionBlock .controls ( node . getBasicBlock ( ) , testIsTrue )
160+ predicate controlsBlock ( BasicBlock b , boolean testIsTrue ) {
161+ conditionBlock .controls ( b , testIsTrue )
162162 }
163163}
164164
@@ -181,7 +181,7 @@ class BarrierGuard extends GuardNode {
181181 AdjacentUses:: aUse ( def , node ) and
182182 this .checks ( node , testIsTrue ) and
183183 AdjacentUses:: aUse ( def , result .asCfgNode ( ) ) and
184- this .controlsNode ( result .asCfgNode ( ) , testIsTrue )
184+ this .controlsBlock ( result .asCfgNode ( ) . getBasicBlock ( ) , testIsTrue )
185185 )
186186 }
187187}
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ query predicate sanitizerGuardControls(
3838) {
3939 exists ( guard .getLocation ( ) .getFile ( ) .getRelativePath ( ) ) and
4040 conf .isSanitizerGuard ( guard ) and
41- guard .controlsNode ( node , testIsTrue )
41+ guard .controlsBlock ( node . getBasicBlock ( ) , testIsTrue )
4242}
4343
4444query predicate sanitizerGuardedNode (
You can’t perform that action at this time.
0 commit comments