Katalog CWE

CWE-584 · Słabość

Return Inside Finally Block

Abstrakcja
Bazowa
Status
Szkic
Dodano
15 grudnia 2006
Ostatnia zmiana
11 grudnia 2025

Podatności CVE z tą słabościąPełny wpis na cwe.mitre.org ↗

Opis

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

Skutki

  • Other

    Alter Execution Logic

Zapobieganie

  • Implementation

    Do not use a return statement inside the finally block. The finally block should have "cleanup" code.

Słabość nadrzędna

Kiedy powstaje

Dotyczy

Not Language-Specific

Wpis z katalogu CWE 4.20.