CWE-1116 — Inaccurate Source Code Comments
CWE-1116: Inaccurate Source Code Comments
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Base |
| Status | Incomplete |
| Likelihood of exploit | — |
Description
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.
Common consequences
- Other: Reduce Maintainability
- Other: Increase Analytical Complexity
Mitigations
Implementation — Verify that each comment accurately reflects what is intended to happen during execution of the code.
References
- CWE page: https://cwe.mitre.org/data/definitions/1116.html
- CWE list: https://cwe.mitre.org/data/index.html