C++: Repair following merge.

This commit is contained in:
Geoffrey White
2019-12-16 14:11:24 +00:00
parent 0da826f0c3
commit acca39bfc7
3 changed files with 18 additions and 1 deletions

View File

@@ -80,6 +80,12 @@ class MallocAllocationFunction extends AllocationFunction {
or
// alloca(size)
name = "alloca" and sizeArg = 0
or
// kmem_alloc(size, flags)
name = "kmem_alloc" and sizeArg = 0
or
// kmem_zalloc(size, flags)
name = "kmem_zalloc" and sizeArg = 0
)
)
}
@@ -194,6 +200,12 @@ class StrdupAllocationFunction extends AllocationFunction {
or
// MmMapLockedPagesSpecifyCache(list, mode, type, address, flag, flag)
name = "MmMapLockedPagesSpecifyCache"
or
// pool_get(pool, flags)
name = "pool_get"
or
// pool_cache_get(pool, flags)
name = "pool_cache_get"
)
)
}

View File

@@ -66,6 +66,12 @@ class StandardDeallocationFunction extends DeallocationFunction {
name = "HeapReAlloc" and freedArg = 2
or
name = "CoTaskMemRealloc" and freedArg = 0
or
name = "kmem_free" and freedArg = 0
or
name = "pool_put" and freedArg = 1
or
name = "pool_cache_put" and freedArg = 1
)
)
}