SAMATE Logo NIST Logo The SAMATE Project Department of Homeland Security

View/Download Test Cases

Test Suite #101: C Test Suite for Source Code Analyzer v2 - Secure

Results: 102 test cases in 6 pages. Pages: 1 2 3 4 5 6
Go to page:

Select Test Case ID(up) Submission Date Language Type of Artifact Status Description Weakness Bad
Good
Mixed
1492062015-03-23CSource CodeDeprecated This test case shows an effort made to avoid OS command ...CWE-078: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Good test case
1492042015-03-23CSource CodeCandidate The test case avoids a use of an allocated memory after being freed.CWE-416: Use After Free
Good test case
1492022015-03-23CSource CodeCandidate An example to prevent heap overflow.CWE-122: Heap-based Buffer Overflow
Good test case
1492002015-03-23CSource CodeCandidate The test cases implements CVE-2002-1869: Checks if you can write ...CWE-412: Unrestricted Externally Accessible Lock
Good test case
1491982015-03-23CSource CodeCandidate Initializing a variable to avoid using its unitialized value.CWE-457: Use of Uninitialized Variable
Good test case
1491962015-03-23CSource CodeCandidate The test case avoids improper null termination with a buffer addresstCWE-170: Improper Null Termination
Good test case
1491942015-03-23CSource CodeCandidate No buffer overflow even if the input is not validated. Every ...CWE-121: Stack-based Buffer Overflow
Good test case
1491922015-03-23CSource CodeCandidate The variable px now is initialized, avoiding the use of an ...CWE-457: Use of Uninitialized Variable
Good test case
1491902015-03-23CSource CodeCandidate No memory leak, the allocated memory is freed.CWE-401: Improper Release of Memory Before Removing Last Reference ('Memory Leak')
Good test case
1491882015-03-23CSource CodeCandidate The SQL Injection is not possible because the arguments are ...CWE-089: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Good test case
1491862015-03-23CSource CodeCandidate If we check the return of scanf we know how many parameters have ...CWE-391: Unchecked Error Condition
Good test case
1491842015-03-23CSource CodeCandidate The test case shows a correct pointer scaling.CWE-468: Incorrect Pointer Scaling
Good test case
1491822015-03-23CSource CodeCandidate The test case prevents a memory leak by releasing memory ...CWE-401: Improper Release of Memory Before Removing Last Reference ('Memory Leak')
Good test case
1491802015-03-23CSource CodeCandidate The test case prevents a memory leak with a pointer which is in ...CWE-401: Improper Release of Memory Before Removing Last Reference ('Memory Leak')
Good test case
1491782015-03-23CSource CodeCandidate The test case avoids a Cross-Site Scripting (XSS) in a C/CGI programwCWE-080: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
Good test case
1491762015-03-23CSource CodeCandidate The test case avoids a Cross-Site Scripting (XSS) in a C/CGI programwCWE-080: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
Good test case
1491742015-03-23CSource CodeCandidate The test case avoids a Cross-Site Scripting (XSS) in a C/CGI programwCWE-080: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
Good test case
1491722015-03-23CSource CodeDeprecated The test case avoids a use of an allocated memory after being ...CWE-416: Use After Free
Good test case
1491702015-03-23CSource CodeCandidate The test case avoids a Stack Overflow by fixing a bad loop exit ...CWE-121: Stack-based Buffer Overflow
Good test case
1491682015-03-23CSource CodeCandidate The test case avoids a Stack Overflow by fixing a bad array index.CWE-121: Stack-based Buffer Overflow
Good test case
1 2 3 4 5 6
Total of selected test cases: 102
Total pages: 6