Update DivideByZeroUsingReturnValue.ql

This commit is contained in:
ihsinme
2023-02-19 21:41:28 +03:00
committed by GitHub
parent 065ca3c227
commit 49af5ec536

View File

@@ -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)
)