[all-commits] [llvm/llvm-project] 06e68f: [AddressSanitizer] Copy type metadata to prevent m...

Dominic Chen via All-commits all-commits at lists.llvm.org
Mon Sep 28 10:57:40 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 06e68f05dafb96ea5395d2fed669fccdcd07f61f
      https://github.com/llvm/llvm-project/commit/06e68f05dafb96ea5395d2fed669fccdcd07f61f
  Author: Dominic Chen <d.c.ddcc at gmail.com>
  Date:   2020-09-28 (Mon, 28 Sep 2020)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
    M llvm/test/Instrumentation/AddressSanitizer/debug_info.ll

  Log Message:
  -----------
  [AddressSanitizer] Copy type metadata to prevent miscompilation

When ASan and e.g. Dead Virtual Function Elimination are enabled, the
latter will rely on type metadata to determine if certain virtual calls can be
removed. However, ASan currently does not copy type metadata, which can cause
virtual function calls to be incorrectly removed.

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




More information about the All-commits mailing list