CodeQL library for C/C++
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)