address-sanitizer

Detect runtime memory errors in fuzzed C/C++ code with AddressSanitizer.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/Avi977/ace-claude-toolkit --skill address-sanitizer-avi977
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: address-sanitizer
Source: https://github.com/Avi977/ace-claude-toolkit/tree/main/skills/testing-handbook-skills/address-sanitizer
Command: npx skills add https://github.com/Avi977/ace-claude-toolkit --skill address-sanitizer-avi977

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AddressSanitizer detects memory errors during fuzzing. Use when fuzzing C/C++ code to find buffer overflows and use-after-free bugs.

Core Features & Use Cases

  • Instrumentation at compile time to detect memory errors
  • Shadow memory tracking and runtime reports
  • Works with fuzzers to reveal memory corruption such as buffer overflows and use-after-free
  • Use case: fuzzing C/C++ projects to improve memory safety

Quick Start

Compile with the sanitizer and run the fuzz target

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 when fuzzing C/C++ code?

AddressSanitizer detects memory errors during fuzzing by using compile-time instrumentation and shadow memory tracking to identify buffer overflows, use-after-free, and leaks in C/C++ and Rust unsafe blocks.

What fuzzers can I integrate with AddressSanitizer to find memory corruption?

AddressSanitizer integrates with libFuzzer, AFL++, and cargo-fuzz to reveal memory corruption during fuzzing campaigns, utilizing shadow memory tracking to report runtime errors in C/C++ applications.

Does AddressSanitizer work with Rust unsafe blocks to detect memory safety issues?

AddressSanitizer works with Rust unsafe blocks to detect memory safety issues like buffer overflows and use-after-free by compiling the code with sanitizer support to enable runtime shadow memory tracking.

What compiler flag do I need to enable AddressSanitizer for my fuzzing targets?

You need to compile your fuzz targets with the -fsanitize=address compiler flag to enable AddressSanitizer, which instruments the code to detect runtime memory corruption such as leaks and use-after-free bugs.

When should I use AddressSanitizer instead of other memory checking approaches?

Use AddressSanitizer during fuzzing campaigns when you need to detect runtime memory corruption like buffer overflows and use-after-free in C/C++ code, utilizing shadow memory tracking for precise error reporting.