[all-commits] [llvm/llvm-project] 0ccf92: [ASAN] Make sure we are only processing lifetime m...

Xun Li via All-commits all-commits at lists.llvm.org
Tue Oct 13 10:22:18 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0ccf9263cceb462a5f3b823becf7e9471e5fb212
      https://github.com/llvm/llvm-project/commit/0ccf9263cceb462a5f3b823becf7e9471e5fb212
  Author: Xun Li <xun at fb.com>
  Date:   2020-10-13 (Tue, 13 Oct 2020)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
    A llvm/test/Instrumentation/AddressSanitizer/alloca-offset-lifetime.ll

  Log Message:
  -----------
  [ASAN] Make sure we are only processing lifetime markers with offset 0 to alloca

This patch addresses https://bugs.llvm.org/show_bug.cgi?id=47787 (and hence https://bugs.llvm.org/show_bug.cgi?id=47767 as well).
In latter instrumentation code, we always use the beginning of the alloca as the base for instrumentation, ignoring any offset into the alloca.
Because of that, we should only instrument a lifetime marker if it's actually pointing to the beginning of the alloca.

Differential Revision: https://reviews.llvm.org/D89191




More information about the All-commits mailing list