BaseDraft
CWE-1335Incorrect Bitwise Shift of Integer
Category: other
Description
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.
Common consequences· 1
- Integrity — DoS: Crash, Exit, or Restart
Potential mitigations· 1
- [Implementation]Implicitly or explicitly add checks and mitigation for negative or over-shift values.
References
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.