Merge pull request #2778 from erik-krogh/FalsySanitizer

Approved by asgerf
This commit is contained in:
semmle-qlci
2020-02-20 11:17:03 +00:00
committed by GitHub
9 changed files with 263 additions and 207 deletions

View File

@@ -188,12 +188,7 @@ 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
)
node instanceof DataFlow::VarAccessBarrier
}
override predicate isBarrierGuard(DataFlow::BarrierGuardNode node) {