nerdexam
CompTIA

SY0-501 · Question #485

An analyst is reviewing a simple program for potential security vulnerabilities before being deployed to a Windows server. Given the following code: void foo (char *bar) { car random_user_input[12]; s

Sign in or unlock SY0-501 to reveal the answer and full explanation for question #485. The question stem and answer options stay visible for context.

Submitted by obi.ng· Mar 4, 2026Threats, vulnerabilities, and mitigations

Question

An analyst is reviewing a simple program for potential security vulnerabilities before being deployed to a Windows server. Given the following code:

void foo (char *bar) { car random_user_input[12]; stropy (random_user_input, bar); } Which of the following vulnerabilities is present?

Options

  • ABad memory pointer
  • BBuffer overflow
  • CInteger overflow
  • DBackdoor

Unlock SY0-501 to see the answer

You've previewed enough free SY0-501 questions. Unlock SY0-501 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#buffer overflow#code review#memory corruption#application security
Full SY0-501 Practice