CodeQL library for C/C++
codeql/cpp-all 0.12.11 (changelog, source)
Search

Predicate getPointedSize

Returns the size of the pointed-to type, counting void types as size 1.

Import path

import semmle.code.cpp.security.BufferAccess
int getPointedSize(Type t)