National Institute of Standards and Technology
Package illustrating a test case

Test case 1495

Description

Input validation. The size of the first argument must be lower than 99 even it will produces a buffer overflow when copied into the buff array.
From "Secure Coding in C and C++" by Robert C. Seacord.
Page 52, Figure 2-29

Flaws

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