CWE-469: Use of Pointer Subtraction to Determine Size

BaseDraftExploit Likelihood: Medium

The product subtracts one pointer from another in order to determine size, but this calculation can be incorrect if the pointers do not exist in the same memory chunk.

View on MITRE
Back to CWE Lookup

Technical Details

Structure
Simple

Applicable To

Languages
CC++
Platforms

Learn More