National Institute of Standards and Technology
Package illustrating a test case

Test case 1511


Integer 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


Have any comments on this test case? Please, send us an email.