Skip to content
OpenAdvisories

Weakness (CWE)

CWE-197: Numeric Truncation Error

Base Incomplete

Truncation errors occur when a primitive is cast to a primitive of a smaller size and data is lost in the conversion.

How to prevent it (1 mitigation)
  1. Implementation

    Ensure that no casts, implicit or explicit, take place that move from a larger size primitive or a smaller size primitive.

Source: MITRE CWE-197

26 results · Clear filters · Feed