Query module SizeCheck2

name
Not enough memory allocated for array of pointer type
description
Calling ‘malloc’, ‘calloc’ or ‘realloc’ without allocating enough memory to contain multiple instances of the type of the pointer may result in a buffer overflow
kind
problem
problem.severity
warning
precision
medium
id
cpp/suspicious-allocation-size
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