add dataflow barrier for if(xrandr)

This commit is contained in:
Erik Krogh Kristensen
2020-02-06 12:53:12 +01:00
parent aa8ebf4fe1
commit 1f7dda7fbc
3 changed files with 39 additions and 11 deletions

View File

@@ -348,17 +348,6 @@ class PropNameTracking extends DataFlow::Configuration {
)
}
override predicate isBarrier(DataFlow::Node node) {
super.isBarrier(node)
or
exists(ConditionGuardNode guard, SsaRefinementNode refinement |
node = DataFlow::ssaDefinitionNode(refinement) and
refinement.getGuard() = guard and
guard.getTest() instanceof VarAccess and
guard.getOutcome() = false
)
}
override predicate isBarrierGuard(DataFlow::BarrierGuardNode node) {
node instanceof BlacklistEqualityGuard or
node instanceof WhitelistEqualityGuard or