[llvm-dev] Does -fsanitize=address cover -fsanitize=leak?

Peng Yu via llvm-dev llvm-dev at lists.llvm.org
Tue Apr 20 15:40:02 PDT 2021


Hi,

I see this page offers confusing information. The example uses
-fsanitize=address, but the text below it says -fsanitize=leak.

When I tried it, it seems that both -fsanitize=leak and
-fsanitize=address are fine? So should -fsanitize=address be used
instead -fsanitize=leak as the former covers more than the latter?
Thanks.

https://clang.llvm.org/docs/LeakSanitizer.html

-- 
Regards,
Peng


More information about the llvm-dev mailing list