address-sanitizer

Detect memory errors in C/C++ and Rust fuzzing workflows.

9|4|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/marduk191/qwen3_mcp --skill address-sanitizer-marduk191
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: address-sanitizer
Source: https://github.com/marduk191/qwen3_mcp/tree/main/skills/testing-handbook-skills/skills/address-sanitizer
Command: npx skills add https://github.com/marduk191/qwen3_mcp --skill address-sanitizer-marduk191

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AddressSanitizer detects memory errors during fuzzing and testing.

Core Features & Use Cases

  • Instrumentation at compile time to detect memory violations during runtime.
  • Shadow memory and runtime checks catch buffer overflows, use-after-free, double-free, and memory leaks.
  • Use cases include fuzzing C/C++ and Rust code, debugging crashes related to memory corruption, and improving reliability of fuzz targets.

Quick Start

Compile your program with address sanitizer enabled and run your test to reveal memory errors during execution.

Frequently Asked Questions about address-sanitizer

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

FAQPage Schema
How do I detect memory errors like buffer overflows and use-after-free during fuzzing?

To detect memory errors during fuzzing, compile your C/C++ or Rust code with the -fsanitize=address flag. AddressSanitizer uses compile-time instrumentation and shadow memory to catch buffer overflows, use-after-free, and leaks at runtime.

What is AddressSanitizer and how does it find memory safety violations?

AddressSanitizer is a memory error detector that uses compile-time instrumentation and shadow memory runtime checks to find violations. It intercepts memory operations to catch issues like double-free and memory corruption during execution.

Can I use AddressSanitizer with Rust fuzzing workflows?

Yes, you can use AddressSanitizer with Rust fuzzing workflows. It applies to both C/C++ and Rust code, requiring properly built binaries compiled with -fsanitize=address to detect memory safety violations during testing.

How do I compile a program with AddressSanitizer to debug memory corruption?

To compile a program with AddressSanitizer, enable the -fsanitize=address compiler flag and include the necessary runtime support. This instruments the binary to reveal memory errors like leaks and overflows during test execution.

What types of memory errors does ASan catch during testing?

ASan catches memory errors including buffer overflows, use-after-free, double-free, and memory leaks. It detects these memory safety violations during runtime checks by mapping shadow memory to track allocated regions.

Do I need compiler instrumentation to use AddressSanitizer for fuzzing?

Yes, compiler instrumentation with -fsanitize=address is required to use AddressSanitizer. You must build properly instrumented binaries and include runtime support to detect memory errors during fuzzing and testing.