C++: Use the new class in 'cpp/invalid-pointer-deref'.

This commit is contained in:
Mathias Vorreiter Pedersen
2022-09-28 17:51:38 +01:00
parent a9710453f4
commit d12a76559a

View File

@@ -76,7 +76,7 @@ private predicate hasSizeImpl(Expr e, DataFlow::Node n, string state) {
* Holds if `(n, state)` pair represents the source of flow for the size
* expression associated with `alloc`.
*/
predicate hasSize(AllocationExpr alloc, DataFlow::Node n, string state) {
predicate hasSize(HeuristicAllocationExpr alloc, DataFlow::Node n, string state) {
hasSizeImpl(alloc.getSizeExpr(), n, state)
}