VariantIncomplete

CWE-1077Floating Point Comparison with Incorrect Operator

Category: other

Description

The code performs a comparison such as an equality test between two float (floating point) values, but it uses comparison operators that do not account for the possibility of loss of precision.

Common consequences· 1

  • Other — Reduce Reliability
    This issue can prevent the product from running reliably. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.

References

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

Related by meaning· 6

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

CWE
Comparing instead of Assigning
CWE
Assigning instead of Comparing
CWE
Signed to Unsigned Conversion Error
CWE
Insufficient Control Flow Management
CWE
Inaccurate Source Code Comments
CWE
Excessive Use of Unconditional Branching
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.