Name the vulnerability for the following code:
void safe()
{
cout << "Safe function\n";
}

void dangerous()
{
cout << "Password: 'Rosebud'\n";

}

void doNothing()
{
char text[256];
void(*p)() = safe;
cin >> text;
p();
}