[PATCH] D39472: [asan] Ensure that the minimum redzone is at least SHADOW_GRANULARITY
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 15 14:39:42 PST 2017
vitalybuka added inline comments.
================
Comment at: compiler-rt/lib/asan/asan_activation.cc:117
+ disabled.min_redzone = Max(16, (int)SHADOW_GRANULARITY);
+ disabled.max_redzone = Max(16, (int)SHADOW_GRANULARITY);
disabled.alloc_dealloc_mismatch = false;
----------------
disabled.max_redzone = disabled.min_redzone
================
Comment at: compiler-rt/lib/asan/asan_flags.cc:73
f->SetDefaults();
+ if (f->redzone < (int)SHADOW_GRANULARITY)
+ f->redzone = SHADOW_GRANULARITY;
----------------
This should be around line 147, // Flag validation:
https://reviews.llvm.org/D39472
More information about the llvm-commits
mailing list