]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sys-utils: lscpu segfaults when built with -fsanitize=address
authorCristian Rodríguez <crrodriguez@opensuse.org>
Sat, 30 May 2015 18:51:41 +0000 (15:51 -0300)
committerKarel Zak <kzak@redhat.com>
Tue, 2 Jun 2015 09:58:53 +0000 (11:58 +0200)
This is expected and a false positive, exclude the vmware detection
trick when __SANITIZE_ADDRESS__ is defined.

sys-utils/lscpu.c

index b36d1daa79a48fa23488a9a926de66a6fa55acaa..f695a320ded7b20b37c95091397f2a8ceb5d9079 100644 (file)
@@ -34,7 +34,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 
-#if defined(__x86_64__) || defined(__i386__)
+#if (defined(__x86_64__) || defined(__i386__)) && !defined(__SANITIZE_ADDRESS__)
 # define INCLUDE_VMWARE_BDOOR
 #endif