BaseDraft

CWE-570Expression is Always False

Category: other

Description

The product contains an expression that will always evaluate to false.

Common consequences· 1

  • Other — Quality Degradation, Varies by Context

Potential mitigations· 1

  • [Implementation]Consider refactoring the code, or determine if the code is not including a condition that could cause the expression to become false.

References

  1. https://cwe.mitre.org/data/definitions/570.html

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Expression is Always True
CWE
Incorrect Short Circuit Evaluation
CWE
Loop with Unreachable Exit Condition ('Infinite Loop')
CWE
Dead Code
CWE
Signed to Unsigned Conversion Error
CWE
Improper Handling of Exceptional Conditions
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.