[clang] [ASAN] Adjust asan instrumented GlobalVariable size to not include redzone (PR #66666)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 21 06:03:55 PDT 2023
================
@@ -2445,6 +2445,11 @@ bool ModuleAddressSanitizer::InstrumentGlobals(IRBuilder<> &IRB, Module &M,
// zero so we can copy the metadata over as is.
NewGlobal->copyMetadata(G, 0);
+ // Set sanitizer metadata for newly created global,
+ // if it doesn't have it.
----------------
b-sumner wrote:
Should we comment here that this may be a workaround for metadata lost between front end and this instrumentation pass?
https://github.com/llvm/llvm-project/pull/66666
More information about the cfe-commits
mailing list