Clang with -faddress-sanitizer on Windows

后端 未结 2 1737
情话喂你
情话喂你 2021-01-02 00:18

My intent is to use Clang as a replacement for Valgrind on Windows to find buffer overflows, dynamic memory misuse etc. in C/C++ programs that I\'v

相关标签:
2条回答
  • 2021-01-02 00:43

    AddressSanitizer works much better on Windows these days (but it's still a bit of a work-in-progress). There's some documentation at https://github.com/google/sanitizers/wiki/AddressSanitizerWindowsPort

    0 讨论(0)
  • 2021-01-02 01:09

    Googling brought me to this page.

    To quote,

    AddressSanitizer is supported on

    • Linux x86_64 (tested on Ubuntu 10.04).
    • MacOS 10.6 and 10.7 (i386/x86_64).

    Support for Linux i386/ARM is in progress (it may work, but is not guaranteed too).


    On the topic of replacement, have you looked at Dr. Memory?

    0 讨论(0)
提交回复
热议问题