Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aae9f88

Browse files
committed
CPP: Model 'alloca'.
1 parent 6fc4154 commit aae9f88

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cpp/ql/src/semmle/code/cpp/models/implementations/Allocation.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ class MallocAllocationFunction extends AllocationFunction {
7777
or
7878
// CoTaskMemAlloc(size)
7979
name = "CoTaskMemAlloc" and sizeArg = 0
80+
or
81+
// alloca(size)
82+
name = "alloca" and sizeArg = 0
8083
)
8184
)
8285
}

0 commit comments

Comments
 (0)