address-sanitizer

Integrate AddressSanitizer with fuzzing campaigns to detect memory safety bugs in C/C++ and Rust code.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/balic-AI-ML-R-D-Resources/eliza_autonomous_agents --skill address-sanitizer-balic-ai-ml-r-d-resources
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: address-sanitizer
Source: https://github.com/balic-AI-ML-R-D-Resources/eliza_autonomous_agents/tree/main/packages/skills/skills/testing-handbook-skills
Command: npx skills add https://github.com/balic-AI-ML-R-D-Resources/eliza_autonomous_agents --skill address-sanitizer-balic-ai-ml-r-d-resources

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AddressSanitizer detects memory errors during fuzzing, helping catch memory safety bugs that might crash targets under test.

Core Features & Use Cases

  • Instrumentation of code with ASan to detect buffer overflows, use-after-free, and leaks during fuzzing campaigns
  • Guidance for integrating ASan with common fuzzers (libFuzzer, AFL++, cargo-fuzz) and multi-language bindings (Rust/C++)
  • Use cases include crash triage, CI-safe fuzzing pipelines, and memory-safety improvements across the codebase

Quick Start

Run fuzzing with ASan enabled to detect memory safety bugs.

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 safety bugs like buffer overflows during fuzzing?

To detect memory safety bugs like buffer overflows during fuzzing, you instrument your C/C++ or Rust code with AddressSanitizer. This automatically identifies use-after-free and leak errors in fuzz tests.

Can I integrate AddressSanitizer with cargo-fuzz for Rust fuzzing campaigns?

Yes, you can integrate AddressSanitizer with cargo-fuzz for Rust fuzzing campaigns. It supports common fuzzers including libFuzzer and AFL++, and handles cross-language boundaries (FFI) where memory corruption risk is high.

What is the best way to set up ASan in a CI pipeline for crash triage?

The best way to set up ASan in CI pipelines for crash triage is enabling AddressSanitizer in your build and fuzzing harness, then using ASan options to collect crash data automatically during fuzz tests.

Does AddressSanitizer work across FFI boundaries between C++ and Rust?

AddressSanitizer works across FFI boundaries between C++ and Rust. It instruments code paths in multi-language bindings to automatically detect memory safety bugs where memory corruption risk is high.

Why do I need to enable AddressSanitizer in my build before running fuzz tests?

You need to enable AddressSanitizer in your build before running fuzz tests to instrument the code properly. This instrumentation is required to detect memory errors and collect crash data for triage during your campaigns.