CWE一覧に戻る
CWE-584

最後にブロック内に戻る

Return Inside Finally Block
脆弱性 レビュー中
JA

このコードにはfinallyブロック内にreturn文があり、tryブロック内でスローされた例外はすべて破棄される。

EN

The code has a return statement inside a finally block, which will cause any thrown exception in the try block to be discarded.

Scope: Other / Impact: Alter Execution Logic
Do not use a return statement inside the finally block. The finally block should have "cleanup" code.
MITRE公式ページ — CWE-584