SAMATE Logo NIST Logo The SAMATE Project Department of Homeland Security

View/Download Test Cases

Test Suite #62: Defence R&D Canada

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

Select Test Case ID(down) Submission Date Language Type of Artifact Status Description Weakness Bad
15182006-06-09C++Source CodeCandidate This test case includes the entire suite of code examples ...None givenBad test case
15192006-06-09C++Source CodeCandidate The bit shift is bigger than the size of the integral type or is ...None givenBad test case
15202006-06-09C++Source CodeCandidate free() is given a pointer to something else than an allocated memorybNone givenBad test case
15212006-06-09C++Source CodeCandidate memcopy() is used to copy memory from one region to another, but thetNone givenBad test case
15222006-06-09C++Source CodeCandidate A null pointer is dereferenced. . . . These test cases were ...CWE-476: NULL Pointer Dereference
Bad test case
15232006-06-09C++Source CodeCandidate A past-the-end c++ iterator is dereferenced. . . . These test caseswNone givenBad test case
15242006-06-09C++Source CodeCandidate An erased c++ iterator is dereferenced. . . . These test cases weregNone givenBad test case
15252006-06-09C++Source CodeCandidate A division by zero occurs. . . . These test cases were ...None givenBad test case
15262006-06-09C++Source CodeCandidate The condition to exit the loop is never satisfied. . . . These testcNone givenBad test case
15272006-06-09C++Source CodeCandidate A C++ array is not deleted correctly, which could lead to memory ...CWE-401: Improper Release of Memory Before Removing Last Reference ('Memory Leak')
Bad test case
15282006-06-09C++Source CodeCandidate Incorrect pointer arithmetic to access a data structure. . . . ...CWE-466: Return of Pointer Value Outside of Expected Range
Bad test case
15292006-06-09C++Source CodeCandidate A buffer function is called with a destination size too big. . . ...None givenBad test case
15302006-06-09C++Source CodeCandidate The value exceeds the representation capacity of the type. . . ...None givenBad test case
15312006-06-09C++Source CodeCandidate A value is casted into a type that can't represent it, because ...None givenBad test case
15322006-06-09C++Source CodeCandidate A signed integer looses its sign when implicitly casted to an ...None givenBad test case
15332006-06-09C++Source CodeCandidate A non-virtual destructor is never called. . . . These test ...None givenBad test case
15342006-06-09C++Source CodeCandidate An array is overrun. . . . These test cases were graciously ...None givenBad test case
15352006-06-09C++Source CodeCandidate A non null-terminated string is read. . . . These test cases ...None givenBad test case
15362006-06-09C++Source CodeCandidate Use of gets(), strcpy() and similar functions, where there is no waytNone givenBad test case
15372006-06-09C++Source CodeCandidate A pointer to allocated memory is used, even if the memory block ...None givenBad test case
1 2
Total of selected test cases: 26
Total pages: 2