Module Alloc

Import path

semmle.code.cpp.commons.Alloc

Imports

cpp

Provides classes and predicates for working with C/C++/ObjC/ObjC++ code.

Predicates

allocationCall

A call to a library routine that allocates memory.

allocationFunction

A library routine that allocates memory.

freeCall

A call to a library routine that frees memory.

freeFunction

A library routine that frees memory.

isAllocationExpr

Is e some kind of allocation (new, alloc, realloc etc)?

isDeallocationExpr

Is e some kind of deallocation (delete, free, realloc etc)?

isFixedSizeAllocationExpr

Is e some kind of allocation (new, alloc, realloc etc) with a fixed size?

isMemoryManagementExpr

Is e some kind of allocation or deallocation (new, alloc, realloc, delete, free etc)?

isStdLibAllocationExpr

Is e an allocation from stdlib.h (malloc, realloc etc)?