Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 13c6f55 + 249f350 commit 9758164Copy full SHA for 9758164
1 file changed
cpp/ql/src/Critical/NewDelete.qll
@@ -80,6 +80,7 @@ private predicate allocReaches0(Expr e, Expr alloc, string kind) {
80
) or exists(Variable v |
81
// alloc via a global
82
allocReachesVariable(v, alloc, kind) and
83
+ strictcount(VariableAccess va | va.getTarget() = v) <= 50 and // avoid very expensive cases
84
e.(VariableAccess).getTarget() = v
85
)
86
}
0 commit comments