[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
Fri Jun 6 10:47:58 PDT 2025


================
@@ -229,6 +229,15 @@ void ScopedString::append(const char *Format, ...) {
   va_end(Args);
 }
 
+size_t ScopedString::copyToBuffer(char *OutputBase, size_t OutputLength) {
+  if (OutputBase && OutputLength) {
----------------
ChiaHungDuan wrote:

I see. I think that needs to be fixed as well. Let's do the non-null check and returning number of  bytes copied here first

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


More information about the llvm-commits mailing list