Skip to content

Commit d12a765

Browse files
committed
C++: Use the new class in 'cpp/invalid-pointer-deref'.
1 parent a971045 commit d12a765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/experimental/Security/CWE/CWE-193/InvalidPointerDeref.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private predicate hasSizeImpl(Expr e, DataFlow::Node n, string state) {
7676
* Holds if `(n, state)` pair represents the source of flow for the size
7777
* expression associated with `alloc`.
7878
*/
79-
predicate hasSize(AllocationExpr alloc, DataFlow::Node n, string state) {
79+
predicate hasSize(HeuristicAllocationExpr alloc, DataFlow::Node n, string state) {
8080
hasSizeImpl(alloc.getSizeExpr(), n, state)
8181
}
8282

0 commit comments

Comments
 (0)