Tag: security
Questions Related to security
How do you fix the unbounded string copy in the following code? char fname[20]; /* 1 / cout << “Enter First Name:”; / 2 / cin >> fname ; / 3 */
What is the vulnerability in this code? char output[20]; /* Assume data is a character array with value %200d asdf */ sprintf(output, data);
What is the vulnerability in this code? int main(int argc, char * argv[]) { printf (argv[1]); }