Unformatted text preview: Buy insurance for her paintings 3a. • Target1 The function foo() uses strcpy() to copy a supplied string(char *arg) without bounds checking. This is vulnerable to buffer overflow. This can be fixed by using strncpy() instead of strcpy(), which does a bounds check before copying. • Target2 The function foo() takes in two parameters, the supplied string and the length of the string. This is vulnerable to buffer overflow. • Primetarget...
View Full Document
- Spring '10
- function foo, Recover Buy insurance