Skip to content
OpenAdvisories

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)
  1. Architecture and Design

    Use a platform with high-level memory abstractions.

  2. Implementation

    Always use array indexing instead of direct pointer manipulation.

  3. Architecture and Design

    Use technologies for preventing buffer overflows.

Source: MITRE CWE-468

4 results · Feed