CWE-1025Comparison Using Wrong Factors

PUBLISHEDweakness record
released 2018-03-29 · last modified 2026-04-30

Metadata

CWE ID:
CWE-1025
摘要:
Base
结构:
Simple
状态:
Incomplete
发布日期:
2018-03-29
更新日期:
2026-04-30

名称

Comparison Using Wrong Factors

描述

The code performs a comparison between two entities, but the comparison examines the wrong factors or characteristics of the entities, which can lead to incorrect results and resultant weaknesses.

常见后果

范围:
Other
影响:
Varies by Context
注释:
This can lead to incorrect results and resultant weaknesses. For example, the code might inadvertently compare references to objects, instead of the relevant contents of those objects, causing two "equal" objects to be considered unequal.

相关 CWE