Back to the previous page
Test Case ID | ![]() |
Bad / Good / Mixed | Bad![]() |
Author | IARPA STONESOUP Test and Evaluation team |
Associations | Test suite: 102 Application: 15 |
Added by | Charles Oliveira |
Language | Java |
Type of test case | Source Code |
Input string | |
Expected Output | |
Instructions | See src/docs/howtobuild.html 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 POI - Source Taint: FILE_CONTENTS - Data Type: VOID_POINTER - Data Flow: INDEX_ALIAS_1 - Control Flow: INTERUPT_CONTINUE |
File(s) |
|
Flaw |
There are no comments
Have any comments on this test case? Please,
.
- BlockAllocationTableReader.java
- J-C584A-POIX-10-ST02-DT03-DF07-CF17-01.yaml
- service_mon.sh
- runFifos.py
- J-C584A-POIX-10-ST02-DT03-DF07-CF17-01.xml
File Contains:
CWE-584: Return Inside Finally Block on line(s): 407, 408, 409, 410, 411, 412, 413, 414, 415
CWE-584: Return Inside Finally Block on line(s): 407, 408, 409, 410, 411, 412, 413, 414, 415