National Institute of Standards and Technology
Package illustrating a test case

Test case 1494

Description

Program vulnerable to arc injection exploit. The buffer overflow occurs on line 25 when memcpy() will copy the first entry argument into the 3 characters array.
From "Secure Coding in C and C++" by Robert C. Seacord.
Page 49, Figure 2-27

Flaws

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