In this code, x is freed twice. What is the risk of this code? x = malloc(200); /* do something with x / free(x); / do something else */ free(x);

  1. This is a double free vulnerability and must be fixed

  2. The second call to free() will return an error

  3. There might be compiler warnings, but the program will run fine

  4. This is not a security issue


Correct Option: A

Find more quizzes: