National Institute of Standards and Technology
Package illustrating a test case

Test case 1487

Description

Dynamic allocation of the character array ensure that sufficient space is allocated to copy the input and the null character.
From "Secure Coding in C and C++" by Robert C. Seacord.
Page 28, Figure 2-3

Flaws

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