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

Predicate getBufferSize

Get the size in bytes of the buffer pointed to by an expression (if this can be determined).

Import path

import semmle.code.cpp.commons.Buffer
int getBufferSize(Expr bufferExpr, Element why)