코딩Coding/Rust❤️메모리Memory관리_기초상식

Stack overflow vs Heap overflow 개념 이해

내인생PLUS 2022. 2. 3. 13:46
728x90

https://m.blog.naver.com/dbstnsgh2/221967559511

 

Stack, Heap, Data 영역

우리가 프로그램을 실행시키게 되면 운영체제는 우리가 실행시킨 프로그램을 위해 메모리 공간을 RAM 안...

blog.naver.com






Stack and Heap 개념과 위치

https://stackoverflow.com/questions/79923/what-and-where-are-the-stack-and-heap/79936#79936

 

What and where are the stack and heap?

Programming language books explain that value types are created on the stack, and reference types are created on the heap, without explaining what these two things are. I haven't read a clear expla...

stackoverflow.com







https://www.google.com/search?rlz=1C5CHFA_enKR985KR985&sxsrf=APq-WBtuM8ze9vWj5q4D6fSL0MdkMwvDSw%3A1644049276455&lei=fDP-YbCbG4Tn9APfqJaQDg&q=stack%20overflow%20error&ved=2ahUKEwiwyfbokOj1AhWEM30KHV-UBeIQsKwBKAB6BAh1EAE&biw=960&bih=976&dpr=1

 

stack overflow error - Google 검색

2020. 4. 7. · StackOverflowError is an error which Java doesn't allow to catch, for instance, stack running out of space, as it's one of the most common ...

www.google.com


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

 

What is the stack and heap memory architecture used by C?

Answer (1 of 7): Memory Layout of C Programs A typical memory representation of C program consists of following sections. 1. Text segment 2. Initialized data segment 3. Uninitialized data segment 4. Stack 5. Heap A typical memory layout of a running proces

www.quora.com









내 나름대로 이해하고 나름 정리한 자료







https://youtu.be/OwQxo4sGVWo

 

 

 

 

 

 

 

 

 


 

반응형