National Institute of Standards and Technology
Package illustrating a test case

Test case 54476

Deprecated test case

This version contains mistakes, making it deprecated. Deprecated test cases should not be used for new work. However, They remain in the SARD as a reference to redo previous work.

Description

CWE: 382 bad case calls System.exit during a normal work flow.
Note: System.exit may be justifiable if
a) significant failures occur during application initialization.
b) the program is invoked by another application and intended to exit with a
status code to determine success/failure.
Otherwise alternatives, such as throwing exceptions should be used as a fail safe
measure.
Sinks:
GoodSink: notify user, do not use System.exit
BadSink : calling System.exit, breaching best practices
Flow Variant: 13 Control flow: if(IO.static_final_five==5) and if(IO.static_final_five!=5)

Flaws

Test Suites

Documentation

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