mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Merge pull request #1083 from geoffw0/newdelete-perf2
CPP: Fix NewDelete.qll performance.
This commit is contained in:
@@ -80,6 +80,7 @@ private predicate allocReaches0(Expr e, Expr alloc, string kind) {
|
||||
) or exists(Variable v |
|
||||
// alloc via a global
|
||||
allocReachesVariable(v, alloc, kind) and
|
||||
strictcount(VariableAccess va | va.getTarget() = v) <= 50 and // avoid very expensive cases
|
||||
e.(VariableAccess).getTarget() = v
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user