CWE-1077: Floating Point Comparison with Incorrect Operator

Variant Incomplete Simple

CWE版本: 4.18

更新日期: 2025-09-09

弱点描述

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.

常见后果

影响范围: Other

技术影响: Reduce Reliability

分类映射

分类名称 条目ID 条目名称 映射适配度
OMG ASCRM ASCRM-RLB-9 -
关键信息

CWE ID: CWE-1077

抽象级别: Variant

结构: Simple

状态: Incomplete

相关弱点