Common Weakness Enumeration

    CWE Definition / CWE-128

    CWE-128: Wrap-around Error

    Wrap around errors occur whenever a value is incremented past the maximum value for its type and therefore wraps around to a very small, negative, or undefined value.

    Published:19 Jul 2006
    Organization:MITRE
    Modified:11 Dec 2025

    Related Weakness

    CWE-682: Incorrect Calculation

    CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer

    CWE-190: Integer Overflow or Wraparound