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.