SecureCoding-5.34

Reallocating or freeing memory that was not dynamically allocated

Required inputs: IR, StaticSemanticAnalysis

Rule description is currently unavailable for legal reasons.

Possible Messages

Key

Text

Severity

Disabled

possible_stack_free

{name0} possibly released by call to {node0} is a stack or static object

None

False

stack_free

{name0} released by call to {node0} is a stack or static object

None

False

Options

resources

resources

Type: set[str]

Default: {'C++ArrayHeapMemory', 'C++HeapMemory', 'CudaAsyncMemory', 'CudaDeviceMemory', 'CudaDriverAsyncMemory', 'CudaHostMemory', 'CudaManagedMemory', 'HeapMemory', 'UniquePtrHeapMemory'}

Deallocator calls of these resources are checked for being called with a stack/static object; the names are a selection of rules in the Resources group.
 

witness_paths

witness_paths : bool = True

Whether witness paths should be determined and included in the issue.