mirror of
https://github.com/github/codeql.git
synced 2026-01-30 14:52:57 +01:00
Update ql/src/experimental/CWE-369/DivideByZero.ql
Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user