nerdexam
CompTIACompTIA

CS0-003 · Question #103

CS0-003 Question #103: Real Exam Question with Answer & Explanation

Sign in or unlock CS0-003 to reveal the answer and full explanation for question #103. The question stem and answer options stay visible for context.

Submitted by amina.ke· Mar 6, 2026Vulnerability Management

Question

A security analyst found an old version of OpenSSH running on a DMZ server and determined the following piece of code could have led to a command execution through an integer overflow; Which of the following controls must be in place to prevent this vulnerability?

Options

  • AConvert all integer numbers in strings to handle the memory buffer correctly.
  • BImplement float numbers instead of integers to prevent integer overflows.
  • CUse built-in functions from libraries to check and handle long numbers properly.
  • DSanitize user inputs, avoiding small numbers that cannot be handled in the memory.

Unlock CS0-003 to see the answer

You've previewed enough free CS0-003 questions. Unlock CS0-003 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

#Integer overflow#Secure coding#Software vulnerability#Input validation
Full CS0-003 PracticeBrowse All CS0-003 Questions