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

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

Test Case IDCandidate1592
Bad / Good / MixedBadBad test case
AuthorFortify Software
Good pair: 1593  
Test suite: 6  17  
Added byJeff Meister
Type of test caseSource Code
Input string
Expected Output
Submission date2006-06-22
DescriptionA strncpy generates a string that may be missing a NUL termination. When it is copied with strcpy a stack buffer can be overrun.

There is 1 comment
Have any comments on this test case? Please, .

File Contains:
CWE-170: Improper Null Termination on line(s): 0, 46, 48