CWE-468
Incorrect Pointer Scaling
In C and C++, one may often accidentally refer to the wrong memory due to the semantics of when math operations are implicitly scaled.
Mitigation
Phase: Architecture and Design
Description:
- Use a platform with high-level memory abstractions.
Mitigation
Phase: Implementation
Description:
- Always use array indexing instead of direct pointer manipulation.
Mitigation
Phase: Architecture and Design
Description:
- Use technologies for preventing buffer overflows.
No CAPEC attack patterns related to this CWE.