Skip to content

Commit aa00424

Browse files
committed
C++: Fix experimental query that uses the deprecated freeCall predicate
1 parent 391d9be commit aa00424

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/src/experimental/Security/CWE/CWE-415/DoubleFree.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import cpp
1414

1515
from FunctionCall fc, FunctionCall fc2, LocalScopeVariable v
1616
where
17-
freeCall(fc, v.getAnAccess()) and
18-
freeCall(fc2, v.getAnAccess()) and
17+
fc.(DeallocationExpr).getFreedExpr() = v.getAnAccess() and
18+
fc2.(DeallocationExpr).getFreedExpr() = v.getAnAccess() and
1919
fc != fc2 and
2020
fc.getASuccessor*() = fc2 and
2121
not exists(Expr exptmp |

0 commit comments

Comments
 (0)