Back to the previous page
Test Case ID | ![]() |
Bad / Good / Mixed | Bad![]() |
Author | IARPA STONESOUP Test and Evaluation team |
Associations | Test suite: 102 Application: 14 |
Added by | Charles Oliveira |
Language | Java |
Type of test case | Source Code |
Input string | |
Expected Output | |
Instructions | See src/BUILD.txt file for instructions on how to install. |
Submission date | 2015-10-06 |
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: SOCKET - Data Type: VOID_POINTER - Data Flow: ADDRESS_AS_FUNCTION_RETURN_VALUE - Control Flow: RECURSIVE |
File(s) |
|
Flaw |
There are no comments
Have any comments on this test case? Please,
.
- IndexFileNames.java
- J-C584A-LUCE-09-ST03-DT03-DF06-CF19-01.xml
- service_mon.sh
- J-C584A-LUCE-09-ST03-DT03-DF06-CF19-01.yaml
- runFifos.py
File Contains:
CWE-584: Return Inside Finally Block on line(s): 99, 100, 101, 102, 103, 104
CWE-584: Return Inside Finally Block on line(s): 99, 100, 101, 102, 103, 104