Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Memory Sanitizer and Leak Sanitizer into clang compiler

I have downloaded LLVM from Home-brew, but I am still unable to use -fsanitize=memory when checking for memory issues in C. I am getting the following error: clang: error: unsupported option '-fsanitize=memory' for target 'arm64-apple-darwin21.2.0'. What do I need to do in order use the Memory Sanitizer as well as Leak Sanitizer on my M1 Mac Pro? (macOS Monterey)

like image 702
AMara Avatar asked Dec 18 '25 08:12

AMara


1 Answers

MemorySanitizer is supported on the following OS: Linux NetBSD FreeBSD

like image 186
xiaobing Avatar answered Dec 20 '25 23:12

xiaobing



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!