National Institute of Standards and Technology
Package illustrating a test case

Test case 154153

Description

CWE-584 Return Inside Finally
This test takes the name of a file as input. It then attempts
to get the absolute path of the file and open it for reading.
Since GetAbsolutePath.getAbsolutePath has a return in a finally
clause, any generated warnings are dropped, eventually leading to
a null pointer exception.
Metadata
- Base program: Apache Lucene
- Source Taint: FILE_CONTENTS
- Data Type: VOID_POINTER
- Data Flow: VAR_ARG_LIST
- Control Flow: FUNCTION_INVOCATION_OVERLOAD

Flaws

Test Suites

Documentation

Have any comments on this test case? Please, send us an email.