CWE-570 — Expression is Always False
CWE-570: Expression is Always False
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Base |
| Status | Draft |
| Likelihood of exploit | — |
Description
The product contains an expression that will always evaluate to false.
Common consequences
- Other: Quality Degradation, Varies by Context
Mitigations
Implementation — Consider refactoring the code, or determine if the code is not including a condition that could cause the expression to become false.
References
- CWE page: https://cwe.mitre.org/data/definitions/570.html
- CWE list: https://cwe.mitre.org/data/index.html