line 14, column 5 Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
// Buffer for name (capacity: 9 chars + '\0' terminator)
10
// In this example we use heap-allocated memory.
11
char* name = (char*) malloc(10);
12
13
if (argc != 0) {
14
strcpy(name, argv[0]);
Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119