mirror of
https://github.com/github/codeql.git
synced 2026-04-22 23:35:14 +02:00
C++: Fix Code Scanning errors.
This commit is contained in:
@@ -68,9 +68,9 @@ predicate cannotContainString(Type t, boolean isIndirect) {
|
||||
|
||||
predicate isNonConst(DataFlow::Node node, boolean isIndirect) {
|
||||
exists(Expr e |
|
||||
e = [node.asExpr()] and isIndirect = false
|
||||
e = node.asExpr() and isIndirect = false
|
||||
or
|
||||
e = [node.asIndirectExpr()] and isIndirect = true
|
||||
e = node.asIndirectExpr() and isIndirect = true
|
||||
|
|
||||
exists(FunctionCall fc | fc = e |
|
||||
not (
|
||||
|
||||
Reference in New Issue
Block a user