Query module SizeCheck

name
Not enough memory allocated for pointer type
description
Calling ‘malloc’, ‘calloc’ or ‘realloc’ without allocating enough memory to contain an instance of the type of the pointer may result in a buffer overflow
kind
problem
problem.severity
warning
precision
medium
id
cpp/allocation-too-small
tags
reliability security external/cwe/cwe-131 external/cwe/cwe-122

Imports

cpp

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

Predicates

Classes