Tagged articles
7 articles
Page 1 of 1
Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
Oct 20, 2025 · Fundamentals

Why Does a C++ Program Crash on free() Even When It Looks Correct?

Even when a C++ program appears to run correctly, writing beyond allocated memory can corrupt heap metadata, causing a delayed crash at free(); this article explains the underlying malloc/free mechanisms, demonstrates the issue with code examples, and offers debugging tools and defensive programming practices to prevent such errors.

CDebuggingFree
0 likes · 9 min read
Why Does a C++ Program Crash on free() Even When It Looks Correct?
Huolala Tech
Huolala Tech
Aug 23, 2024 · Mobile Development

How to Detect and Debug SIGSEGV Memory Corruption in Android Native Apps

This article explains the common causes of SIGSEGV crashes in Android native code, demonstrates classic memory‑corruption patterns such as Use‑After‑Free, Double‑Free and heap buffer overflow, and presents a practical memory‑debugging solution inspired by Gwp‑ASan with custom guard pages, hook strategies, and stack capture techniques.

AndroidGwp-ASanNative Debugging
0 likes · 24 min read
How to Detect and Debug SIGSEGV Memory Corruption in Android Native Apps
ByteDance Terminal Technology
ByteDance Terminal Technology
Oct 28, 2021 · Mobile Development

MemCorruption Tool for Detecting Memory Corruption Issues in Android Apps

The MemCorruption tool, developed by ByteDance's AppHealth team, provides an online, low‑overhead solution for detecting Use‑After‑Free, Double‑Free, and Heap‑Buffer‑Overflow problems in Android applications by hooking memory allocation functions, sampling allocations, and performing invisible SIGSEGV‑based detection.

AndroidHookNative Debugging
0 likes · 12 min read
MemCorruption Tool for Detecting Memory Corruption Issues in Android Apps
ITPUB
ITPUB
Jun 23, 2016 · Information Security

How glibc’s Unlink Mechanism Enables Heap Overflow Exploits (And Why It’s Now Defended)

This article explains the fundamentals of glibc malloc’s unlink mechanism, demonstrates how a heap overflow can be leveraged to overwrite chunk headers and execute arbitrary code, walks through the exploitation steps with code examples, and discusses modern mitigations that render the classic unlink technique ineffective.

glibc mallocheap overflowmemory corruption
0 likes · 15 min read
How glibc’s Unlink Mechanism Enables Heap Overflow Exploits (And Why It’s Now Defended)