CWE-469: Use of Pointer Subtraction to Determine Size

ID CWE-469
Abstraction Base
Structure Simple
Status Draft
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.

Modes of Introduction

Phase Note
Implementation

Applicable Platforms

Type Class Name Prevalence
Language C
Language C++

Relationships

View Weakness
# ID View Status # ID Name Abstraction Structure Status
CWE-1000 Research Concepts Draft CWE-682 Incorrect Calculation Pillar Simple Draft
Loading...
Loading...