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

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 19 13:27:49 PDT 2021


MaskRay accepted this revision.
MaskRay 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
----------------
I wonder whether 16-byte array should use this optimization as well (i.e. `<` => `<=`)

@vitalybuka 


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