Daily security quiz #3
Question for 2026-11-03. Read the code and pick the most serious security vulnerability.
This function takes a user name and prints a greeting. What is the most serious vulnerability?
#include <stdio.h>
#include <string.h>
void greet(const char *name) {
char buf[32];
strcpy(buf, "Hello, ");
strcat(buf, name);
printf("%s\n", buf);
}