]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Show MemorySanitizer presence in version output
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 22 Apr 2020 12:36:50 +0000 (14:36 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 22 Apr 2020 12:43:05 +0000 (14:43 +0200)
This may help to understand some bug reports.

Moreover:
s/CLang/Clang/

[skip ci]

tcpdump.c

index 8ff5aca327f43f452309beb02fa938a3b7c0ff59..5e0afd24b22f62c7971f9e74c2353065691fd0de 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -3128,7 +3128,9 @@ print_version(void)
        (void)fprintf (stderr, "Compiled with AddressSanitizer/GCC.\n");
 #elif defined(__has_feature)
 #  if __has_feature(address_sanitizer)
-       (void)fprintf (stderr, "Compiled with AddressSanitizer/CLang.\n");
+       (void)fprintf (stderr, "Compiled with AddressSanitizer/Clang.\n");
+#  elif __has_feature(memory_sanitizer)
+       (void)fprintf (stderr, "Compiled with MemorySanitizer/Clang.\n");
 #  endif
 #endif /* __SANITIZE_ADDRESS__ or __has_feature */
 }