Description
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
Flaws
Have any comments on this test case? Please, send us an email.