BaseDraft

CWE-571Expression is Always True

Category: other

Description

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

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/571.html

Related by meaning· 6

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

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