conventions.io

Tech Challenge

2026-06-30

🔐

Daily Tech Challenge

Cybersecurity

medium
Question 1 of 5

This C function is compiled with GCC's -fstack-protector-strong, and an attacker overflows buf via the unchecked strcpy. How does the inserted stack canary defend against the classic 'overwrite the saved return address' exploit?

Example
void handle(const char *input) {
    char buf[64];
    strcpy(buf, input);   /* no bounds check */
    /* ... use buf ... */
}

Tuesday, June 30, 2026 · A new challenge drops every day