Query module ArrayArgSizeMismatch

name
Array argument size mismatch
description
Finds function calls where the size of an array being passed is smaller than the array size of the declared parameter. This could lead to accesses to memory locations beyond the parameter’s array bounds.
kind
problem
id
cpp/array-arg-size-mismatch
problem.severity
warning
tags
reliability

Imports

cpp

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