SY0-301 · Question #478
Which of the following is a common coding error in which boundary checking is not performed?
The correct answer is A. Input validation. The common coding error described - where boundary checking is not performed - is the failure to implement proper input validation. When code does not validate that input stays within expected boundaries (e.g., checking that a string doesn't exceed a buffer's length), it leads…
Question
Which of the following is a common coding error in which boundary checking is not performed?
Options
- AInput validation
- BFuzzing
- CSecure coding
- DCross-site scripting
How the community answered
(35 responses)- A89% (31)
- B3% (1)
- C6% (2)
- D3% (1)
Explanation
The common coding error described - where boundary checking is not performed - is the failure to implement proper input validation. When code does not validate that input stays within expected boundaries (e.g., checking that a string doesn't exceed a buffer's length), it leads to vulnerabilities like buffer overflows. Input validation is the secure coding practice that prevents this; its absence is the error. Fuzzing (B) is a testing technique that sends unexpected input to find bugs. Secure coding (C) is the overall practice. Cross-site scripting (D) is a specific vulnerability type, not a category of coding error related to boundary checking.
Topics
Community Discussion
No community discussion yet for this question.