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

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

Test Case IDDeprecated2009
Bad / Good / MixedBadBad test case
AuthorRobert C. Seacord
Replaced by: 149193  
Test suite: 45  
Added byMichael Koo
Type of test caseSource Code
Input string
Expected Output
Submission date2007-10-09
DescriptionBuffer overflow if the input is not validated. Every operation may write outside the bound of the statically allocated character array. From \"Secure Coding in C and C++\" by Robert C. Seacord. Page 28, Figure 2-2.

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

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