Stack overflow vs Heap overflow 개념 이해
https://m.blog.naver.com/dbstnsgh2/221967559511
Stack and Heap 개념과 위치
https://stackoverflow.com/questions/79923/what-and-where-are-the-stack-and-heap/79936#79936
A StackOverflowError is a runtime error in Java. It is thrown when the amount of call stack memory allocated by the JVM is exceeded. A common case of a StackOverflowError being thrown, is when the call stack exceeds due to excessive deep or infinite recursion.
Heap overflow
it happens when a chunk of memory is allocated to the heap and data is written to this memory without any bound checking being done on the data. This is can lead to overwriting some critical data structures in the heap such as the heap headers, or any heap-based data such as dynamic object pointers, which in turn can lead to overwriting the virtual function table.
외국 유튜버 정리 잘 된 자료
https://youtu.be/rDoqT-a6UFg
https://www.quora.com/What-is-the-stack-and-heap-memory-architecture-used-by-C
내 나름대로 이해하고 나름 정리한 자료