address-sanitizer

Detect memory errors in C/C++ code during fuzzing and testing.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/monmacllcapp/skill-forks --skill address-sanitizer-monmacllcapp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: address-sanitizer
Source: https://github.com/monmacllcapp/skill-forks/tree/main/skills/security/plugins/testing-handbook-skills/skills/address-sanitizer
Command: npx skills add https://github.com/monmacllcapp/skill-forks --skill address-sanitizer-monmacllcapp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This technique helps detect critical memory errors like buffer overflows and use-after-free bugs that can lead to crashes and security vulnerabilities in C/C++ code.

Core Features & Use Cases

  • Memory Error Detection: Identifies common memory corruption bugs during runtime.
  • Fuzzing Integration: Essential for enhancing the effectiveness of fuzz testing.
  • Use Case: When fuzzing a C library, integrate AddressSanitizer to automatically catch memory safety issues that traditional testing might miss.

Quick Start

Compile your C++ program with the AddressSanitizer enabled using the clang compiler.

Frequently Asked Questions about address-sanitizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect buffer overflows and use-after-free bugs in C++ code?

To detect buffer overflows and use-after-free bugs in C++ code, compile your program with AddressSanitizer using clang and the -fsanitize=address flag to automatically catch memory corruption during runtime testing.

Can I integrate AddressSanitizer with fuzz testing for C libraries?

Yes, you can integrate AddressSanitizer with fuzz testing for C libraries to automatically catch memory safety issues that traditional testing might miss during the fuzzing process.

What compiler flags are required to enable memory error detection in C/C++?

Enabling memory error detection in C/C++ requires compile-time instrumentation using clang with the -fsanitize=address flag, which injects the necessary checks into the compiled binary.

Does AddressSanitizer detect memory leaks in compiled languages?

Yes, AddressSanitizer detects memory leaks in compiled languages alongside other critical memory errors like buffer overflows and use-after-free bugs that can lead to crashes and security vulnerabilities.

When should I use AddressSanitizer instead of traditional testing for memory safety?

Use AddressSanitizer instead of traditional testing when you need to identify common memory corruption bugs during runtime, as it automatically catches critical memory safety issues that standard testing approaches often miss.