Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
CodeQL library for C/C++
codeql/cpp-all 4.3.1 (changelog, source)

Member predicate SwabBA::getBuffer

Gets the expression that denotes the buffer, along with a textual label for it and an access type.

accessType:

  • 1 = buffer range [0, getSize) is accessed entirely.
  • 2 = buffer range [0, getSize) may be accessed partially or entirely.
  • 3 = buffer is accessed at offset getSize - 1.
  • 4 = buffer is accessed with null terminator read protections (does not read past null terminator, regardless of access size)
Expr getBuffer(string bufferDesc, int accessType)