adplus-dvertising
frame-decoration

Question

How does a heap overflow attack work?

a.

Programs receive data of an unexpected length and copy it into a buffer that's too small to contain it, causing the program to overwrite whatever it is that follows the heap block in memory.

b.

Programs receive data of an expected length and copy it into a buffer that's too small to contain it, causing the program to overwrite whatever it is that follows the heap block in memory.

c.

Programs receive data of an unexpected length and copy it into a buffer that's large enough to contain it, causing the program to overwrite whatever it is that follows the heap block in memory.

d.

Programs receive data of an expected length and copy it into a buffer that's large enough to contain it, causing the program to overwrite whatever it is that follows the heap block in memory.

Posted under Reverse Engineering

Answer: (a).Programs receive data of an unexpected length and copy it into a buffer that's too small to contain it, causing the program to overwrite whatever it is that follows the heap block in memory. Explanation:Heap overflow attacks work by programs receiving data of an unexpected length and copying it into a buffer that's too small to contain it, causing the program to overwrite whatever it is that follows the heap block in memory.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. How does a heap overflow attack work?