Update ql/src/experimental/CWE-369/DivideByZero.ql

Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
monkey-junkie
2021-01-21 00:54:00 +03:00
committed by GitHub
parent 3251fb5c07
commit c8da633d7b

View File

@@ -22,8 +22,7 @@ class DivideByZeroSanitizeGuard extends DataFlow::BarrierGuard {
|
zero.getNumericValue() = 0 and
(
sink.getType().getUnderlyingType() instanceof SignedIntegerType or
sink.getType().getUnderlyingType() instanceof UnsignedIntegerType
sink.getType().getUnderlyingType() instanceof IntegerType
) and
(
eqNode.eq(branch.booleanNot(), sink, zero) or