[PATCH] D89191: [ASAN] Make sure we are only processing lifetime markers with offset 0 to alloca

Xun Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 13 10:20:39 PDT 2020


lxfind added inline comments.


================
Comment at: llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp:1083
+    // beginning of the alloca.
+    AllocaInst *AI = findAllocaForValue(II.getArgOperand(1), true);
     if (!AI) {
----------------
lxfind wrote:
> vitalybuka wrote:
> > Similar problem is if the size of lifetime is smaller then alloca.
> > Would you like to handle that case, here or in the another patch? 
> Is that a problem though? A lifetime marker should always be accurate, that is, if the marker indicates that only part of the region is alive, it should be ok to just mark that region alive?
I will land this as it is for now. But please do let me know your thoughts on what we want to do when the size doesn't match.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D89191



More information about the llvm-commits mailing list