SAMATE Logo NIST Logo The SAMATE Project Department of Homeland Security
Downloads:  Download this Test Case #2126

Back to the previous page... Back to the previous page

Test Case IDAccepted2126
Bad / Good / MixedGoodGood test case
AuthorCharline Cleraux
Associations
Test suite: 64  
Added byCharline Cleraux
LanguageJava
Type of test caseSource Code
Input string
Expected Output
Instructions
Submission date2009-10-15
DescriptionHere we try to get the system property from a specified key and then remove whitespace. If the key is unknown, cmd is null and the null dereference exception is caught. Moreover there is a local control flow complexity, which is a \"switch\" conditional structure.
File(s)
Flaw

There are no comments
Have any comments on this test case? Please, .

File Contains:
CWE-476: NULL Pointer Dereference on line(s): 41