Heap and stack memory
Hi I have couple of questions on memory from C++ stand point. 1. We have stack overflow when infinite recursion is called. Is it called stack corruption as well or it is a different concept all together? 2. What is heap corruption? If I get all the memory address and set it as null , is this called heap corruption? If not, what is heap corruption? 3. Also heap overflow concept is there or not? If yes , how? 4. Each C++ program has its own stack. Is this true? Can anyone corrupt entire machine's stack from a single c++ program? 5. Each C++ program don't have its own heap. It's common across the system. Is this true? Can anyone corrupt entire machine's heap from a single c++ program?