How use Memory Sanitizer with use GCC?
Asked Answered
Z

1

7

I want to use this kind of sanitizer in gcc. How can I do this? Is such an operation possible?

I found solution for clang: clang -fsanitize=memory -fno-omit-frame-pointer -g -O2 umr.cc but I don't know how use this in gcc

Zlatoust answered 30/3, 2022 at 10:25 Comment(1)
I don't know if the effects are the same, but you can use -fsanitize=address to catch memory leaks: osc.edu/resources/getting_started/howto/…Ison
C
6

This is impossible - GCC does not support MSan.

Conclave answered 30/3, 2022 at 14:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.