[all-commits] [llvm/llvm-project] fe3096: [scudo] Untag BlockEnd in reallocate

Vitaly Buka via All-commits all-commits at lists.llvm.org
Thu Jul 1 13:03:22 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fe30963600ea579d4046c9a92c6e38cc2be0e9a2
      https://github.com/llvm/llvm-project/commit/fe30963600ea579d4046c9a92c6e38cc2be0e9a2
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2021-07-01 (Thu, 01 Jul 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/combined.h

  Log Message:
  -----------
  [scudo] Untag BlockEnd in reallocate

If we get here from reallocate, BlockEnd is tagged. Then we
will storeTag(UntaggedEnd) into the header of the next chunk.

Luckily header tag is 0 so unpatched code still works.

Reviewed By: pcc

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




More information about the All-commits mailing list