Weakness (CWE)
CWE-468: Incorrect Pointer Scaling
Base Incomplete
In C and C++, one may often accidentally refer to the wrong memory due to the semantics of when math operations are implicitly scaled.
How to prevent it (3 mitigations)
-
Architecture and Design
Use a platform with high-level memory abstractions.
-
Implementation
Always use array indexing instead of direct pointer manipulation.
-
Architecture and Design
Use technologies for preventing buffer overflows.
Source: MITRE CWE-468
0 results · Clear filters · Feed
Nothing found.