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

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

Test Case IDAccepted2127
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 an inter procedural scope complexity.
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): 45