[all-commits] [llvm/llvm-project] 9d4415: Don't refer to allocation map entry after dealloca...

Jason Molenda via All-commits all-commits at lists.llvm.org
Thu Apr 15 20:16:57 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9d4415d01d234efb5dd46bdcbb280c03e12a8101
      https://github.com/llvm/llvm-project/commit/9d4415d01d234efb5dd46bdcbb280c03e12a8101
  Author: Jason Molenda <jason at molenda.com>
  Date:   2021-04-15 (Thu, 15 Apr 2021)

  Changed paths:
    M lldb/tools/debugserver/source/MacOSX/MachTask.mm

  Log Message:
  -----------
  Don't refer to allocation map entry after deallocating it

debugserver's MachTask::DeallocateMemory when removing an
allocate entry from our map (in resposne to an '_m' packet),
copy the size from the entry before removing it from the
map and then using the iterator to fix an ASAN error on
the bots when running TestGdbRemoteMemoryAllocation.py

rdar://76595998




More information about the All-commits mailing list