CS0-002 Web TestEngine demo

Exit VCEDump CS0-002 CompTIA Cybersecurity Analyst (CySA+)
Question 34 of 100
0% complete
Q34 Single choice

An internally developed file-monitoring system identified the following excerpt as causing a program to crash often:

char filedata[100];
fp = fopen(`access.log`, `r`);
srtcopy (filedata, fp);
printf (`%s\n`, filedata);

Which of the following should a security analyst recommend to fix the issue?

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in