nerdexam
EC-Council

312-92 · Question #10

Neil is almost finished developing a Web-based inventorytracking application for a company he is working for under contract. Neil finds out that the company wants to pay him half of what they had…

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

Question

Neil is almost finished developing a Web-based inventorytracking application for a company he is working for under contract. Neil finds out that the company wants to pay him half of what they had agreed upon so he is very angry. Neil decides to insert the following code into his application. What is Neil trying to create here? #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]); return 1; } strcpy(buffer, argv[1]); return 0; } EC-Council 312-92 Exam

Options

  • AUML malformed string
  • BFormat string bug
  • CBuffer underflow
  • DBuffer overflow

How the community answered

(47 responses)
  • A
    13% (6)
  • B
    6% (3)
  • C
    2% (1)
  • D
    79% (37)

Community Discussion

No community discussion yet for this question.

Full 312-92 Practice