BaseDraft
CWE-584Return Inside Finally Block
Category: other
Description
The code has a return statement inside a finally block, which will cause any thrown exception in the try block to be discarded.
Common consequences· 1
- Other — Alter Execution Logic
Potential mitigations· 1
- [Implementation]Do not use a return statement inside the finally block. The finally block should have "cleanup" code.
References
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.