nerdexam
EC-Council

412-79V10 · Question #288

Kyle is performing the final testing of an application he developed for the accounting department. His last round of testing is to ensure that the program is as secure as possible. Here are the…

The correct answer is A. Buffer overflow. See the full explanation below for the reasoning.

Question

Kyle is performing the final testing of an application he developed for the accounting department. His last round of testing is to ensure that the program is as secure as possible. Here are the relevant command. What is the testing in this point? #include <stdio.h> #include <string.h> int main(int argc, char *argv[]) { char buffer[10]; if (argc < 2) { fprintf(stderr, "USAGE: %s string\n", argv[0]); exit(1); } strcpy(buffer, argv[1]); return 0; }

Options

  • ABuffer overflow
  • BFormat string bug
  • CNormal function
  • DSQL injection

How the community answered

(17 responses)
  • A
    71% (12)
  • B
    6% (1)
  • C
    6% (1)
  • D
    18% (3)

Community Discussion

No community discussion yet for this question.

Full 412-79V10 Practice