[all-commits] [llvm/llvm-project] cc2b62: [compiler-rt] assert max virtual address is <= mma...

Emily Shi via All-commits all-commits at lists.llvm.org
Mon Apr 19 14:01:30 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cc2b62a06e616c6406b0f1387625b50d3d0639ad
      https://github.com/llvm/llvm-project/commit/cc2b62a06e616c6406b0f1387625b50d3d0639ad
  Author: Emily Shi <code at emi.sh>
  Date:   2021-04-19 (Mon, 19 Apr 2021)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp

  Log Message:
  -----------
  [compiler-rt] assert max virtual address is <= mmap range size

If these sizes do not match, asan will not work as expected.

If possible, assert at compile time that the vm size is less than or equal to mmap range.
If a compile time assert is not possible, check at run time (for iOS)

rdar://76477969

Reviewed By: delcypher, yln

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




More information about the All-commits mailing list