CWE-1041 — Use of Redundant Code
CWE-1041: Use of Redundant Code
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Base |
| Status | Incomplete |
| Likelihood of exploit | — |
Description
The product has multiple functions, methods, procedures, macros, etc. that contain the same code.
Common consequences
- Other: Reduce Maintainability
Mitigations
Implementation — Merge common functionality into a single function and then call that function from across the entire code base.
References
- CWE page: https://cwe.mitre.org/data/definitions/1041.html
- CWE list: https://cwe.mitre.org/data/index.html