Hacker ApprovedDepartments

AddressSanitizer

Hacker Approved

Ranked 3 of 6 sanitizers by recommenders

People recommend it for catching memory bugs during testing, such as leaks and out-of-bounds access. Critics say its runtime cost makes it too slow for production use.

People recommend it for catching memory bugs during testing, such as leaks and out-of-bounds access. Critics say its runtime cost makes it too slow for production use.

25 people gave an opinion

recommend it
21
criticize it
4
approval share
84%
Each figure is one person. RecommendsCriticizes

Recommended in 7 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: not recommended
  7. May 2026: recommended
  8. June 2026: not recommended
  9. July 2026: not recommended
  10. August 2026: not recommended
  11. September 2026: not recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it carries the badge

  • 21 people recommend itNeeds 10 or more, met.
  • 5.3 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 7 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Runs in CI and test suites

    “build and test with sanitizers (ASAN, UBSAN, TSAN) when not measuring performance”

    Comment from 10 Oct 2026 in “C for Rust programmers”

    “a mandatory test pass running with UBSan/ASan/Valgrind”

    Comment from 22 Oct 2026 in “Rust Style Guide”

    “you should be running your rust tests under asan”

    Comment from 13 Oct 2026 in “11 year old unsoundness bugs found in Rust borrow checker”
  • Catches memory errors and leaks in tests

    “I'd be surprised if some combination of ASAN and UBSAN wouldn't catch this and similar dangling references”

    Comment from 30 Nov 2025 in “Hardening the C++ Standard Library at scale”

    “If you just want memory safety checking during QA, I suspect you are better off sticking with ASan.”

    Comment from 3 Nov 2025 in “Notes by djb on using Fil-C”

    “catch pretty much all of the 'trivial' memory corruption issues”

    Comment from 20 May 2026 in “Everything in C is undefined behavior”
  • Widely praised as amazing

    “ASAN/LSAN is amazing. It absolutely monkey-hammers performance though.”

    Comment from 19 Feb 2026 in “-fbounds-safety: Enforcing bounds safety for C”

    “clang-tidy, ASAN, UBSAN, LSAN, MSAN, and TSAN are AMAZING”

    Comment from 13 Jan 2026 in “LLVM: The Bad Parts”

    “ASAN, UBSAN, LSAN, MSAN, and TSAN are AMAZING.”

    Comment from 12 Jan 2026 in “LLVM: The Bad Parts”
  • Faster than Valgrind, low overhead

    “enabling this and all the other sanitize options will have a negligible effect on the useful performance”

    Comment from 16 Jan 2026 in “A 0-click exploit chain for the Pixel 9 Part 1: Decoding Dolby”

    “The sanitisers are about 10x to 50x faster than valgrind.”

    Comment from 19 Feb 2026 in “-fbounds-safety: Enforcing bounds safety for C”

What people warn about

Each mark is one comment

  • Too slow for production use

    “Carrying around stuff like ASan / TSan and a ton of other checks is just pretty expensive”

    Comment from 9 Oct 2026 in “Reducing undefined behavior in the C language”

    “ASAN/LSAN is amazing. It absolutely monkey-hammers performance though.”

    Comment from 19 Feb 2026 in “-fbounds-safety: Enforcing bounds safety for C”

    “its performance cost makes it unsuitable for production use”

    Comment from 19 Feb 2026 in “-fbounds-safety: Enforcing bounds safety for C”

Other sanitizers people recommend

The four most recommended other sanitizers, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

AddressSanitizer compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
Valgrind29878%13—Approved
Miri26390%12—Approved
AddressSanitizerThis page21484%7—Approved
UndefinedBehaviorSanitizer120100%5—Approved
Go race detector5183%4——
See all 6 sanitizers, ranked

What people said

26 of the 28 comments that mention it, newest first. Each links to the original comment.

“a mandatory test pass running with UBSan/ASan/Valgrind”

RecommendsComment from 22 Oct 2026 in “Rust Style Guide”

“test with ASAN, UBSAN and TSAN”

RecommendsComment from 14 Oct 2026 in “Arena Allocators in C”

“you should be running your rust tests under asan”

RecommendsComment from 13 Oct 2026 in “11 year old unsoundness bugs found in Rust borrow checker”

“build and test with sanitizers (ASAN, UBSAN, TSAN) when not measuring performance”

RecommendsComment from 10 Oct 2026 in “C for Rust programmers”

“Carrying around stuff like ASan / TSan and a ton of other checks is just pretty expensive”

CriticizesComment from 9 Oct 2026 in “Reducing undefined behavior in the C language”

“Valgrind and asan will allow a buggy access (like an OOB) to succeed if the resulting address is valid at all”

CriticizesComment from 14 Aug 2026 in “I want extern "fil-C"”

“it will catch many or most of issues as they happen.”

RecommendsComment from 20 May 2026 in “Everything in C is undefined behavior”

“catch pretty much all of the 'trivial' memory corruption issues”

RecommendsComment from 20 May 2026 in “Everything in C is undefined behavior”

“developing a unit test framework based on Catch2 and ASAN that tracks new/delete invocations is rather powerful”

RecommendsComment from 8 May 2026 in “Bjarne Stroustrup: How do I deal with memory leaks?”

“running with sanitizers (ASAN, UBSan)”

RecommendsComment from 10 Mar 2026 in “Ask HN: Is anyone vibe-coding in C?”

“ASan helps here, but it's not trivial to run in all embedded contexts”

MixedComment from 20 Feb 2026 in “Defer Available in GCC and Clang”

“The sanitisers are about 10x to 50x faster than valgrind.”

RecommendsComment from 19 Feb 2026 in “-fbounds-safety: Enforcing bounds safety for C”

“ASAN/LSAN is amazing. It absolutely monkey-hammers performance though.”

MixedComment from 19 Feb 2026 in “-fbounds-safety: Enforcing bounds safety for C”

“its performance cost makes it unsuitable for production use”

CriticizesComment from 19 Feb 2026 in “-fbounds-safety: Enforcing bounds safety for C”

“already have several years of production experience, in a mature ecosystem”

RecommendsComment from 16 Feb 2026 in “Zig – io_uring and Grand Central Dispatch std.Io implementations landed”

“We run valgrind and asan as part of the CI”

RecommendsComment from 8 Feb 2026 in “I Write Games in C (yes, C)”

“plus sanitizers like ASan, is basically the valgrind equivalent on macOS”

RecommendsComment from 1 Feb 2026 in “Swift is a more convenient Rust”

“enabling this and all the other sanitize options will have a negligible effect on the useful performance”

MixedComment from 16 Jan 2026 in “A 0-click exploit chain for the Pixel 9 Part 1: Decoding Dolby”

“It's too slow to be used in production”

CriticizesComment from 16 Jan 2026 in “A 0-click exploit chain for the Pixel 9 Part 1: Decoding Dolby”

“clang-tidy, ASAN, UBSAN, LSAN, MSAN, and TSAN are AMAZING”

RecommendsComment from 13 Jan 2026 in “LLVM: The Bad Parts”

“ASAN, UBSAN, LSAN, MSAN, and TSAN are AMAZING.”

RecommendsComment from 12 Jan 2026 in “LLVM: The Bad Parts”

“use ASAN or Valgrind then leak detection is not difficult”

RecommendsComment from 7 Jan 2026 in “C Is Best”

“Asan is not memory safe. It's just a bug finding tool.”

CriticizesComment from 14 Dec 2025 in “Linux Sandboxes and Fil-C”

“I'd be surprised if some combination of ASAN and UBSAN wouldn't catch this and similar dangling references”

RecommendsComment from 30 Nov 2025 in “Hardening the C++ Standard Library at scale”

“This plays hell on things like Valgrind or ASAN.”

MixedComment from 7 Nov 2025 in “How often does Python allocate?”

“If you just want memory safety checking during QA, I suspect you are better off sticking with ASan.”

RecommendsComment from 3 Nov 2025 in “Notes by djb on using Fil-C”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.