National Institute of Standards and Technology
Package illustrating a test case

Test case 1491

Description

Null-termination defect. There is no place allocated for the null terminating character. Thereby, the strcpy() writes beyond the character array.
From "Secure Coding in C and C++" by Robert C. Seacord.
Page 31, Figure 2-7

Flaws

Test Suites

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