heap buffer overflow in c

#include <iostream>
#include <cstring>

void vulnerableFunction(const char* input) {
    char buffer[8];
    strcpy(buffer, input);
}

int main() {
    const char* maliciousString = "This is a malicious string that causes heap buffer overflow!";
    vulnerableFunction(maliciousString);

    return 0;
}