mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-02-05 05:13:36 +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:
parent
5da03791a7
commit
9609db8173
@ -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 +
|
||||
|
||||
Loading…
Reference in New Issue
Block a user