Files
ports/devel/electron42/files/patch-base_strings_safe__sprintf__unittest.cc
2026-10-04 04:07:15 +00:00

19 lines
499 B
C++

--- base/strings/safe_sprintf_unittest.cc.orig 2026-03-13 16:54:03 UTC
+++ base/strings/safe_sprintf_unittest.cc
@@ -744,6 +744,7 @@ TEST(SafeSPrintfTest, EmbeddedNul) {
#endif
}
+#if !BUILDFLAG(IS_BSD)
TEST(SafeSPrintfTest, EmitNULL) {
char buf[40];
#if defined(__GNUC__)
@@ -760,6 +761,7 @@ TEST(SafeSPrintfTest, EmitNULL) {
#pragma GCC diagnostic pop
#endif
}
+#endif
TEST(SafeSPrintfTest, PointerSize) {
// The internal data representation is a 64bit value, independent of the