[PATCH] D102469: [sanitizer] Reduce redzone size for small size global objects

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 17 12:04:16 PDT 2021


vitalybuka accepted this revision.
vitalybuka added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp:2556-2559
+  // Reduce redzone size for small size objects, e.g. int, char[1]. MinRZ is at
+  // least 32 bytes, optimize when SizeInBytes is less than half of MinRZ.
+  if (SizeInBytes < MinRZ / 2) {
+    RZ = MinRZ - SizeInBytes;
----------------



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102469/new/

https://reviews.llvm.org/D102469



More information about the llvm-commits mailing list