CWE DATABASE
About
GET A DEMO
Backslash Vulnerability Database
Dead Code
Dead Code
CWE-561
Short description
The product contains dead code, which can never be executed.
Extended description
Dead code is code that can never be executed in a running program. The surrounding code makes it impossible for a section of code to ever be executed.
Best practices to prevent this CWE
Phase: Implementation
Remove dead code before deploying the application.
Phase: Testing
Use a static analysis tool to spot dead code.