address-sanitizer

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

Updated Jan 24, 2026
One-click install
npx skills add https://github.com/amano--/call-center --skill address-sanitizer-amano
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: address-sanitizer
Source: https://github.com/amano--/call-center/tree/main/.gemini/antigravity/skills/trailofbits-security/address-sanitizer
Command: npx skills add https://github.com/amano--/call-center --skill address-sanitizer-amano

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers find memory corruption bugs like buffer overflows and use-after-free errors in C/C++ code, preventing crashes and security vulnerabilities.

Core Features & Use Cases

  • Memory Error Detection: Identifies common memory safety issues during testing and fuzzing.
  • Integration with Fuzzers: Works seamlessly with tools like libFuzzer, AFL++, and cargo-fuzz.
  • Use Case: When fuzzing a C library, use this Skill to automatically detect memory leaks and buffer overflows that could lead to security exploits.

Quick Start

Compile your C++ program with the address sanitizer 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 memory errors like buffer overflows in C++ code?

To detect memory errors like buffer overflows in C++ code, compile your program using Clang or GCC with the `-fsanitize=address` flag during testing and fuzzing. This instrumentation identifies memory corruption bugs automatically.

Can I integrate address sanitizer with fuzzing tools like libFuzzer?

Yes, address sanitizer integrates seamlessly with fuzzing tools like libFuzzer, AFL++, and cargo-fuzz. This combination automatically detects memory leaks and buffer overflows while generating test cases to find security exploits.

What types of memory corruption bugs does address sanitizer find?

Address sanitizer finds common memory corruption bugs such as buffer overflows, use-after-free, and double-free errors. Detecting these issues during testing prevents potential crashes and security vulnerabilities in C/C++ applications.

Does address sanitizer work with both C and C++ compilers?

Yes, address sanitizer works with both C and C++ compilers, specifically Clang and GCC. You must enable it by passing the `-fsanitize=address` flag during compilation to instrument memory operations.