Query module SuspiciousSizeof

name
Suspicious ‘sizeof’ use
description
Taking ‘sizeof’ of an array parameter is often mistakenly thought to yield the size of the underlying array, but it always yields the machine pointer size.
kind
problem
problem.severity
warning
precision
medium
id
cpp/suspicious-sizeof
tags
reliability correctness security external/cwe/cwe-467

Imports

cpp

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

Classes