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
Associations
Added byRomain Gaucher
LanguageC
Type of test caseSource Code
Input string
Expected Output
Instructions
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
File(s)
Flaw

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