StephanvanSchaik / mmap-rs

A cross-platform and safe Rust API to create and manage memory mappings in the virtual address space of the calling process.
Apache License 2.0
61 stars 17 forks source link

macos: use mach_vm_region_recurse to iterate/query submappings #23

Closed StephanvanSchaik closed 1 year ago

StephanvanSchaik commented 1 year ago

Use mach_vm_region_recurse() rather than mach_vm_region() to properly handle submappings when iterating over the memory areas in a process or querying an address for the corresponding memory area.