SAMATE Logo NIST Logo The SAMATE Project Department of Homeland Security

View/Download Test Cases

Test Suite #64: Java Test Suite for Source Code Analyzer - false positive

Results: 27 test cases in 2 pages. Pages: 1 2
Go to page:

Select Test Case ID(up) Submission Date Language Type of Artifact Status Description Weakness Bad
Good
Mixed
21162009-10-15JavaSource CodeAccepted The code, with a container complexity, creates a ...CWE-099: Improper Control of Resource Identifiers ('Resource Injection')
Good test case
21152009-10-15JavaSource CodeAccepted The code, with an inter procedural scope complexity, creates a ...CWE-099: Improper Control of Resource Identifiers ('Resource Injection')
Good test case
21142009-10-15JavaSource CodeAccepted The code creates a FileOutputStream from a file which is allowed ...CWE-099: Improper Control of Resource Identifiers ('Resource Injection')
Good test case
21132009-10-15JavaSource CodeAccepted The code, with a loop structure complexity (for), tries to execute asCWE-078: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Good test case
21122009-10-15JavaSource CodeAccepted The code, with a local control flow complexity (switch), tries ...CWE-078: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Good test case
21112009-10-15JavaSource CodeAccepted The code, with a inter procedural scope complexity, tries to executeaCWE-078: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Good test case
21102009-10-15JavaSource CodeAccepted The code tries to execute a system command, read from the input ...CWE-078: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Good test case
1 2
Total of selected test cases: 27
Total pages: 2