CWE-1116Inaccurate Source Code Comments

PUBLISHEDweakness record
released 2019-01-03 · last modified 2025-12-11

Metadata

CWE ID:
CWE-1116
摘要:
Base
结构:
Simple
状态:
Incomplete
发布日期:
2019-01-03
更新日期:
2025-12-11

名称

Inaccurate Source Code Comments

描述

The source code contains comments that do not accurately describe or explain aspects of the portion of the code with which the comment is associated.

常见后果

范围:
Other
影响:
Reduce Maintainability
注释:
This issue makes it more difficult to maintain the product, which indirectly affects security by making it more difficult or time-consuming to find and/or fix vulnerabilities. It also might make it easier to introduce vulnerabilities.
范围:
Other
影响:
Increase Analytical Complexity
注释:
When a comment does not accurately reflect the associated code elements, this can introduce confusion to a reviewer (due to inconsistencies) or make it more difficult and less efficient to validate that the code is implementing the intended behavior correctly.

相关 CWE