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

Vitaly Buka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 19 14:14:38 PDT 2021


vitalybuka added inline comments.


================
Comment at: llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp:2556
+  uint64_t RZ = 0;
+  if (SizeInBytes < MinRZ / 2) {
+    // Reduce redzone size for small size objects, e.g. int, char[1]. MinRZ is
----------------
MaskRay wrote:
> I wonder whether 16-byte array should use this optimization as well (i.e. `<` => `<=`)
> 
> @vitalybuka 
Agree, <= cutoff looks better here


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102469



More information about the cfe-commits mailing list