[compiler-rt] [scudo] [MTE] resize stack depot for allocation ring buffer (PR #74515)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 13 15:42:14 PST 2023


================
@@ -1040,7 +1057,9 @@ class Allocator {
   uptr GuardedAllocSlotSize = 0;
 #endif // GWP_ASAN_HOOKS
 
-  StackDepot Depot;
+  char *RawStackDepot = nullptr;
----------------
fmayer wrote:

We use the char* to index into the following elements, as with the RingBuffer. This is to satisfy the C++ standard rules around objects and out of bounds accesses.

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


More information about the llvm-commits mailing list