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

Skip to content

Commit 25dc2ad

Browse files
committed
C++: Support '__builtin_alloca'.
1 parent acca39b commit 25dc2ad

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
@@ -81,6 +81,9 @@ class MallocAllocationFunction extends AllocationFunction {
8181
// alloca(size)
8282
name = "alloca" and sizeArg = 0
8383
or
84+
// __builtin_alloca(size)
85+
name = "__builtin_alloca" and sizeArg = 0
86+
or
8487
// kmem_alloc(size, flags)
8588
name = "kmem_alloc" and sizeArg = 0
8689
or

0 commit comments

Comments
 (0)