# address-sanitizer

> Claude/Codex skill by [@trailofbits](https://omgskills.com/library/trailofbits/index.md) · 8.1k stars · Updated 2026-11-06

Builds and runs code under AddressSanitizer to catch buffer overflows, use-after-free, and other memory errors during fuzzing or tests. Covers -fsanitize=address builds, ASAN\_OPTIONS, reading the crash report, LeakSanitizer, and the overhead and platform trade-offs. Use when fuzzing C/C++ or Rust that has unsafe blocks or FFI, when debugging a memory corruption crash, or when reading an ASan stack trace.

Tags: agent-skills

## Install

```sh
git clone https://github.com/trailofbits/skills /tmp/skills && ln -s /tmp/skills/plugins/testing-handbook-skills/skills/address-sanitizer ~/.claude/skills/address-sanitizer
```

## From README

AddressSanitizer (ASan) AddressSanitizer (ASan) is a widely adopted memory error detection tool used extensively during software testing, particularly fuzzing. It helps detect memory corruption bugs that might otherwise go unnoticed, such as buffer overflows, use-after-free errors, and other memory safety violations. Overview ASan is a standard practice in fuzzing due to its effectiveness in identifying memory vulnerabilities. It instruments code at compile time to track memory allocations and accesses, detecting illegal operations at runtime.

## Links

- HTML page: https://omgskills.com/library/trailofbits/skills/address-sanitizer/
- GitHub: https://github.com/trailofbits/skills
- Author: [@trailofbits](https://omgskills.com/library/trailofbits/index.md)

## More from this repo

- [aflpp](https://omgskills.com/library/trailofbits/skills/aflpp/index.md) — Sets up and runs AFL++ for multi-core fuzzing of C/C++ projects built with afl-clang-fast or afl-gcc-fast.
   - [@trailofbits](https://omgskills.com/library/trailofbits/index.md) · 7.9k stars
- [agentic-actions-auditor](https://omgskills.com/library/trailofbits/skills/agentic-actions-auditor/index.md) — Audits GitHub Actions workflows for security vulnerabilities in AI agent integrations including Claude Code Action,...
   - [@trailofbits](https://omgskills.com/library/trailofbits/index.md) · 7.9k stars
- [algorand-vulnerability-scanner](https://omgskills.com/library/trailofbits/skills/algorand-vulnerability-scanner/index.md) — Scans Algorand smart contracts for 11 common vulnerabilities including rekeying attacks, unchecked transaction fees,...
   - [@trailofbits](https://omgskills.com/library/trailofbits/index.md) · 7.9k stars
