MemorySanitizer for gcc?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

clang has memory sanitizer, https://github.com/google/sanitizers/wiki/MemorySanitizer

Just wondering if this is coming to GCC?
Cheers, Jonny

// clang-7 -g -fsanitize=memory -fPIE -pie -o asan asan.c
int main()
{
    char b;
    return b;
}

$ ./asan
==28526==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x5559226eeccb  (/home/jonny/code/sanitizer/asan+0x9bccb)
    #1 0x7f5b57445b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #2 0x55592266e8a9  (/home/jonny/code/sanitizer/asan+0x1b8a9)

SUMMARY: MemorySanitizer: use-of-uninitialized-value (/home/jonny/code/sanitizer/asan+0x9bccb)
Exiting



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux