Index: webrtc/base/ipaddress_unittest.cc |
diff --git a/webrtc/base/ipaddress_unittest.cc b/webrtc/base/ipaddress_unittest.cc |
index 62773c143a7dbce9d100b655896766fbc36e50ba..cbe8f2654806ba697d00fac29f92dafad693dd2f 100644 |
--- a/webrtc/base/ipaddress_unittest.cc |
+++ b/webrtc/base/ipaddress_unittest.cc |
@@ -669,7 +669,13 @@ TEST(IPAddressTest, TestAsIPv6Address) { |
EXPECT_EQ(addr, addr2); |
} |
-TEST(IPAddressTest, TestCountIPMaskBits) { |
+// Disabled for UBSan: https://bugs.chromium.org/p/webrtc/issues/detail?id=5491 |
+#ifdef UNDEFINED_SANITIZER |
+#define MAYBE_TestCountIPMaskBits DISABLED_TestCountIPMaskBits |
+#else |
+#define MAYBE_TestCountIPMaskBits TestCountIPMaskBits |
+#endif |
+TEST(IPAddressTest, MAYBE_TestCountIPMaskBits) { |
IPAddress mask; |
// IPv4 on byte boundaries |
EXPECT_PRED2(CheckMaskCount, "255.255.255.255", 32); |