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