aports/community/chromium/partalloc-ambiguous.patch
Elly Fong-Jones cf4cba21e0 community/chromium: enable base_unittests test suite
This test suite has a handful of failing tests caused by two root problems:

* death tests that don't work properly under musl
* SafeSPrintf tests that have ambiguous overloads which are resolved
  wrongly

I will work on fixing both upstream, but before that, we can enable virtually
all of base_unittests by skipping the broken handful.
2023-09-24 05:42:03 +00:00

12 lines
412 B
Diff

--- a/base/allocator/partition_allocator/partition_alloc_base/strings/safe_sprintf.h
+++ b/base/allocator/partition_allocator/partition_alloc_base/strings/safe_sprintf.h
@@ -178,6 +178,8 @@
integer.width = sizeof(long long);
}
+ Arg(std::nullptr_t np) : ptr(np), type(POINTER) {}
+
// A C-style text string.
Arg(const char* s) : str(s), type(STRING) {}
Arg(char* s) : str(s), type(STRING) {}