CWE-806: Buffer Access Using Size of Source Buffer

VariantIncomplete

The product uses the size of a source buffer when reading from or writing to a destination buffer, which may cause it to access memory that is outside of the bounds of the buffer.

View on MITRE
Back to CWE Lookup

Extended Description

When the size of the destination is smaller than the size of the source, a buffer overflow could occur.

Technical Details

Structure
Simple

Applicable To

Languages
CC++
Platforms

Learn More