We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
divideByZeroSanitizerGuard
1 parent 736372f commit 8ae4c21Copy full SHA for 8ae4c21
go/ql/src/experimental/CWE-369/DivideByZero.ql
@@ -13,7 +13,7 @@ import DataFlow::PathGraph
13
import semmle.go.dataflow.internal.TaintTrackingUtil
14
15
/**
16
- * A barrier-guard, which represents comparison and equality with zero.
+ * Holds if `g` is a barrier-guard which checks `e` is nonzero on `branch`.
17
*/
18
predicate divideByZeroSanitizerGuard(DataFlow::Node g, Expr e, boolean branch) {
19
exists(DataFlow::Node zero, DataFlow::Node checked |
0 commit comments