Weakness (CWE)
CWE-460: Improper Cleanup on Thrown Exception
Base Draft
The product does not clean up its state or incorrectly cleans up its state when an exception is thrown.
How to prevent it (1 mitigation)
-
Implementation
If one breaks from a loop or function by throwing an exception, make sure that cleanup happens or that you should exit the program. Use throwing exceptions sparsely.
Source: MITRE CWE-460
0 results · Clear filters · Feed
Nothing found.