Umbra Wiki weakness weakness/CWE-1164
Back to wiki

CWE-1164 — Irrelevant Code

provenance: imported · CWE: CWE-1164

CWE-1164: Irrelevant Code

MITRE CWE weakness

Kind Weakness
Abstraction Class
Status Incomplete
Likelihood of exploit

Description

The product contains code that is not essential for execution, i.e. makes no state changes and has no side effects that alter data or control flow, such that removal of the code would have no impact to functionality or correctness.

Irrelevant code could include dead code, initialization that is not used, empty blocks, code that could be entirely removed due to optimization, etc.

Common consequences

  • Other: Reduce Reliability
  • Other: Reduce Performance

Mitigations

(none listed)

References

  • CWE page: https://cwe.mitre.org/data/definitions/1164.html
  • CWE list: https://cwe.mitre.org/data/index.html