mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Update DivideByZeroUsingReturnValue.ql
This commit is contained in:
@@ -122,10 +122,7 @@ predicate compareFunctionWithValue(Expr guardExp, Function compArg, Expr valArg)
|
||||
pragma[inline]
|
||||
predicate checkConditions1(Expr div, Function fn, float changeInt) {
|
||||
exists(Expr val |
|
||||
(
|
||||
val.getEnclosingFunction() = fn //or
|
||||
//val.getEnclosingFunction() = div.getEnclosingFunction()
|
||||
) and
|
||||
val.getEnclosingFunction() = fn and
|
||||
val.getValue().toFloat() = changeInt and
|
||||
compareFunctionWithValue(div, fn, val)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user