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
See all 1,245 pages under Weakness classes (CWE) →
Related pages
Browse by topic
Every page in the corpus, grouped. Search finds one page; this shows what else is here.