Module Allocation
Provides an abstract class for modeling functions and expressions that
allocate memory, such as the standard malloc
function. To use this QL
library, create one or more QL classes extending a class here with a
characteristic predicate that selects the functions or expressions you are
trying to model. Within that class, override the predicates provided
by the abstract class to match the specifics of those functions or
expressions. Finally, add a private import statement to Models.qll
.
Import path
import semmle.code.cpp.models.interfaces.Allocation
Classes
AllocationExpr | An allocation expression such as call to |
AllocationFunction | An allocation function such as |
HeuristicAllocationExpr | An expression that might allocate memory. |
HeuristicAllocationFunction | An function that might allocate memory. |
OperatorNewAllocationFunction | An |