[compiler-rt] [asan] Use InternalMmapVector for error_message_buffer, reallocate wh… (PR #77488)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 16 16:22:47 PST 2024


================
@@ -32,8 +33,11 @@ namespace __asan {
 
 // -------------------- User-specified callbacks ----------------- {{{1
 static void (*error_report_callback)(const char*);
-static char *error_message_buffer = nullptr;
-static uptr error_message_buffer_pos = 0;
+typedef InternalMmapVectorNoCtor<char, true> ErrorMessageBuffer;
----------------
vitalybuka wrote:

typedef -> using

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


More information about the llvm-commits mailing list