Câu 56: CS0-002: CompTIA CySA+ Certification Exam (CS0-002)
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?
Nội dung câu hỏi
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?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. Open the access.log file in read/write mode.
- B. Replace the strcpy function. — đáp án hiện tại
- C. Perform input sanitization.
- D. Increase the size of the file data butter.
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.