An integer value is specified to be shifted by a negative amount or an amount greater than or equal to the number of bits contained in the value causing an unexpected or indeterminate result.
Implicitly or explicitly add checks and mitigation for negative or over-shift values.
Our security experts can help you identify and remediate CWE-1335 vulnerabilities in your codebase.
Get Security Assessment