CodeQL library for C/C++
codeql/cpp-all 0.12.10 (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)