HomePhabricator

Don't refer to allocation map entry after deallocating it

Authored by jasonmolenda on Apr 15 2021, 6:58 PM.

Description

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

Details

Committed
jasonmolendaApr 15 2021, 8:16 PM
Parents
rG0148b6537275: [libcxx] adds `cpp17-.*iterator` concepts for iterator_traits
Branches
Unknown
Tags
Unknown