mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-03-05 12:12:59 +00:00
Fix a bug in start address calculation
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@261 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
@@ -145,7 +145,7 @@ void* ReadTaskMemory(task_port_t target_task,
|
||||
|
||||
// use the negative of the page size for the mask to find the page address
|
||||
mach_vm_address_t page_address =
|
||||
reinterpret_cast<mach_vm_address_t>(address) && (-systemPageSize);
|
||||
reinterpret_cast<mach_vm_address_t>(address) & (-systemPageSize);
|
||||
|
||||
mach_vm_address_t last_page_address =
|
||||
(reinterpret_cast<mach_vm_address_t>(address) + length +
|
||||
|
||||
Reference in New Issue
Block a user