Umbra Wiki weakness weakness/CWE-1041
Back to wiki

CWE-1041 — Use of Redundant Code

provenance: imported · CWE: CWE-1041

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