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

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

Test Case IDCandidate1641
Bad / Good / MixedBadBad test case
AuthorFortify Software
Associations
Good pair: 1642  
Test suite: 6  
Added byJeff Meister
LanguageC
Type of test caseSource Code
Input string
Expected Output
Instructions
Submission date2006-06-22
DescriptionSprintf is used to copy a string to a stack buffer. A guard in the caller is used to prevent an overflow from occuring but the guard is incorrect and an overflow can still occur.
File(s)
Flaw

There are no comments
Have any comments on this test case? Please, .

File Contains:
CWE-121: Stack-based Buffer Overflow on line(s): 0, 37