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

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

Test Case IDCandidate1511
Bad / Good / MixedBadBad test case
AuthorRobert C. Seacord
Added byRomain Gaucher
Type of test caseSource Code
Input string
Expected Output
Submission date2006-05-22
DescriptionInteger overflow. The declaration of total integer as "unsigned short int" assumes that the length of the first and second arguments fits in such an integer.
From "Secure Coding in C and C++" by Robert C. Seacord.
Page 152, Figure 5-1

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

File Contains:
CWE-118: Improper Access of Indexable Resource ('Range Error') on line(s): 0