Calling task_for_pid with mach_task_self is just returning mach_task_self anyway, but it also triggers system warnings (task_for_pid is only supposed to be used by high-privileged executables). NFC.
rdar://problem/39198248
Paths
| Differential D51119
[sanitizer] Don't call task_for_pid(mach_task_self). NFC. ClosedPublic Authored by kubamracek on Aug 22 2018, 12:09 PM.
Details Summary Calling task_for_pid with mach_task_self is just returning mach_task_self anyway, but it also triggers system warnings (task_for_pid is only supposed to be used by high-privileged executables). NFC. rdar://problem/39198248
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 22 2018, 5:31 PM Closed by commit rL340587: [sanitizer] Don't call task_for_pid(mach_task_self). NFC. (authored by kuba.brecka). · Explain WhyAug 23 2018, 3:56 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 162290 compiler-rt/trunk/lib/lsan/lsan_common_mac.cc
compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps_mac.cc
|