CWE-785: Use of Path Manipulation Function without Maximum-sized Buffer
VariantIncomplete
The product invokes a function for normalizing paths or file names, but it provides an output buffer that is smaller than the maximum possible size, such as PATH_MAX.
View on MITREBack to CWE Lookup
Extended Description
Passing an inadequately-sized output buffer to a path manipulation function can result in a buffer overflow. Such functions include realpath(), readlink(), PathAppend(), and others.
Technical Details
- Structure
- Simple
Applicable To
CC++