Question: what is the major difference between a heap overflow and a stack overflow?
Answer: 10 Answers. Stack overflow refers specifically to the case when the execution stack grows beyond the memory that is reserved for it. ... Buffer overflow refers to any case in which a program writes beyond the end of the memory allocated for any buffer (including on the heap, not just on the stack).