Deep Understanding of How2Heap from Assembly Language

Deep Understanding of How2Heap from Assembly Language

The management method of ptmalloc2, the chunk structure, and the bins model have been explained very clearly in the Overview of GLIBC heap exploitation techniques and ctfwiki. This article records my learning process of heap exploitation. This series will update a chapter every day, and it is expected to complete updates for glibc2.23, glibc2.27, and … Read more

Classic! Must-Know Stack Concepts in Embedded Programming

Classic! Must-Know Stack Concepts in Embedded Programming

Word Count: 9000 Content Quality: ⭐⭐⭐⭐⭐ 1. Prerequisite Knowledge—Memory Allocation in Programs A program compiled by C/C++ occupies memory divided into the following parts: 1. Stack Area (stack)—automatically allocated and released by the compiler, used for storing function parameters and local variable values. Its operation is similar to a stack in data structures. 2. Heap … Read more

Using GDB to Inspect Program Stack Space

Using GDB to Inspect Program Stack Space

Introduction: This is a quick tutorial on how to use GDB to inspect the stack space of a C program. Word count: 7403, estimated reading time: 10 minutes https://linux.cn/article-13550-1.htmlAuthor: Julia EvansTranslator: amwps290 Yesterday, while chatting with some people, they mentioned that they didn’t really understand how the stack works and didn’t know how to inspect … Read more

Introduction to FreeRTOS: Heap and Stack

Introduction to FreeRTOS: Heap and Stack

Introduction This article officially starts learning about the FreeRTOS operating system. I plan to write a series of articles to help everyone quickly get started with FreeRTOS. 1. Introduction to FreeRTOS FreeRTOS is an open-source, real-time, embedded operating system that is widely used in small embedded systems and microcontrollers. The design goal of FreeRTOS is … Read more