CWE-1041Use of Redundant Code

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

Metadata

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

名称

Use of Redundant Code

描述

The product has multiple functions, methods, procedures, macros, etc. that contain the same code.

常见后果

范围:
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. For example, if there are two copies of the same code, the programmer might fix a weakness in one copy while forgetting to fix the same weakness in another copy.

相关 CWE