[compiler-rt] [scudo] Add `__scudo_get_info` symbol to export stats to a buffer. (PR #130273)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 16 07:39:01 PDT 2025


================
@@ -128,6 +128,52 @@ TEST(ScudoStringsTest, Padding) {
   testAgainstLibc<int>("%03d - %03d", -12, -1234);
 }
 
+TEST(ScudoStringsTest, CopyIntoNullBuffer) {
+  scudo::ScopedString Str;
+  Str.append("abc");
+  EXPECT_EQ(4U, Str.copyToBuffer(nullptr, 0));
+}
----------------
piwicode wrote:

Ok, I removed the test.

https://github.com/llvm/llvm-project/pull/130273


More information about the llvm-commits mailing list