CWE-191: Integer Underflow (Wrap or Wraparound)
BaseDraft
The product subtracts one value from another, such that the result is less than the minimum allowable integer value, which produces a value that is not equal to the correct result.
View on MITREBack to CWE Lookup
Extended Description
This can happen in signed and unsigned cases.
Technical Details
- Structure
- Simple
Applicable To
CC++JavaC#