Juliet Java 1.0 Test suite #24
DownloadDescription
A collection of test cases in the Java language. It contains examples for 106 different CWEs. This software is not subject to copyright protection and is in the public domain. NIST assumes no responsibility whatsoever for its use by other parties, and makes no guaranties, expressed or implied, about its quality, reliability, or any other characteristic. All documents related to the Juliet Test Suite can be found at the documents page.
Documentation
Displaying test cases 7026 - 7050 of 14184 in total
-
CWE: 396 An overly broad catch statement may cause errors in program execution if unexpected exceptions are thrown Sinks: Throwable GoodSink: Catch specific exception type (NumberFormatException) BadSink : Catch Throwable, which is overly generic Flow Variant: 17 Control flow: for loops
-
CWE: 396 An overly broad catch statement may cause errors in program execution if unexpected exceptions are thrown Sinks: Throwable GoodSink: Catch specific exception type (NumberFormatException) BadSink : Catch Throwable, which is overly generic Flow Variant: 19 Control flow: Dead code after...
-
Declare that the function throws "Exception" rather than a specific exception. In this test case, we don't actually throw an exception to differentiate it from other test cases.
-
Declare that the function throws "Exception" rather than a specific exception. In this test case, we don't actually throw an exception to differentiate it from other test cases.
-
Throw an overly-broad exception (in this case, Throwable). This is a manual test case because generated test cases are all in methods that throw Throwable and we want to avoid that since it is related to this CWE.
-
Throw an overly-broad exception (in this case, Throwable). This is a manual test case because generated test cases are all in methods that throw Throwable and we want to avoid that since it is related to this CWE.
-
CWE: 400 Resource Exhaustion Sinks: heap GoodSink: threshold for memory consumption BadSink : no threshold for memory consumption Flow Variant: 01 Baseline
-
CWE: 400 Resource Exhaustion Sinks: heap GoodSink: threshold for memory consumption BadSink : no threshold for memory consumption Flow Variant: 02 Control flow: if(true) and if(false)
-
CWE: 400 Resource Exhaustion Sinks: heap GoodSink: threshold for memory consumption BadSink : no threshold for memory consumption Flow Variant: 03 Control flow: if(5==5) and if(5!=5)
-
CWE: 400 Resource Exhaustion Sinks: heap GoodSink: threshold for memory consumption BadSink : no threshold for memory consumption Flow Variant: 04 Control flow: if(private_final_t) and if(private_final_f)
-
CWE: 400 Resource Exhaustion Sinks: heap GoodSink: threshold for memory consumption BadSink : no threshold for memory consumption Flow Variant: 05 Control flow: if(private_t) and if(private_f)
-
CWE: 400 Resource Exhaustion Sinks: heap GoodSink: threshold for memory consumption BadSink : no threshold for memory consumption Flow Variant: 06 Control flow: if(private_final_five==5) and if(private_final_five!=5)
-
CWE: 400 Resource Exhaustion Sinks: heap GoodSink: threshold for memory consumption BadSink : no threshold for memory consumption Flow Variant: 07 Control flow: if(private_five==5) and if(private_five!=5)
-
CWE: 400 Resource Exhaustion Sinks: heap GoodSink: threshold for memory consumption BadSink : no threshold for memory consumption Flow Variant: 08 Control flow: if(private_returns_t()) and if(private_returns_f())
-
CWE: 400 Resource Exhaustion Sinks: heap GoodSink: threshold for memory consumption BadSink : no threshold for memory consumption Flow Variant: 09 Control flow: if(IO.static_final_t) and if(IO.static_final_f)
-
CWE: 400 Resource Exhaustion Sinks: heap GoodSink: threshold for memory consumption BadSink : no threshold for memory consumption Flow Variant: 10 Control flow: if(IO.static_t) and if(IO.static_f)
-
CWE: 400 Resource Exhaustion Sinks: heap GoodSink: threshold for memory consumption BadSink : no threshold for memory consumption Flow Variant: 11 Control flow: if(IO.static_returns_t()) and if(IO.static_returns_f())
-
CWE: 400 Resource Exhaustion Sinks: heap GoodSink: threshold for memory consumption BadSink : no threshold for memory consumption Flow Variant: 12 Control flow: if(IO.static_returns_t_or_f())
-
CWE: 400 Resource Exhaustion Sinks: heap GoodSink: threshold for memory consumption BadSink : no threshold for memory consumption Flow Variant: 13 Control flow: if(IO.static_final_five==5) and if(IO.static_final_five!=5)
-
CWE: 400 Resource Exhaustion Sinks: heap GoodSink: threshold for memory consumption BadSink : no threshold for memory consumption Flow Variant: 14 Control flow: if(IO.static_five==5) and if(IO.static_five!=5)
-
CWE: 400 Resource Exhaustion Sinks: heap GoodSink: threshold for memory consumption BadSink : no threshold for memory consumption Flow Variant: 15 Control flow: switch(7)
-
CWE: 400 Resource Exhaustion Sinks: heap GoodSink: threshold for memory consumption BadSink : no threshold for memory consumption Flow Variant: 16 Control flow: while(true) and while(local_f)
-
CWE: 400 Resource Exhaustion Sinks: heap GoodSink: threshold for memory consumption BadSink : no threshold for memory consumption Flow Variant: 17 Control flow: for loops
-
CWE: 400 Resource Exhaustion Sinks: heap GoodSink: threshold for memory consumption BadSink : no threshold for memory consumption Flow Variant: 19 Control flow: Dead code after an if(true) return
-
CWE: 400 Resource Exhaustion Sinks: uploadDiskServlet GoodSink: restricted upload size BadSink : no restriction on upload size Flow Variant: 01 Baseline