CWE-193

Off-by-one Error

Description

A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.