medium
Single Answer
0Denis is reviewing the code of an open-source application that he is planning to use in his organization. He finds the code excerpt shown here: int myarray[10]; myarray[10] = 8; What type of attack is taking place?
Answer Options
A
Mismatched data types
B
Overflow
C
SQL injection
D
Covert channel
Correct Answer: B
Explanation
This is an example of a specific type of buffer overflow known as an off-by-one error. The first line of the code defines an array of 10 elements, which would be numbered 0 through 9. The second line of code tries to place a value in the 11th element of the array (remember, array counting begins at 0!), which would cause an overflow.