Still having issues with mach_vm_readoverwrite
Still having issues with mach_vm_readoverwrite
- Subject: Still having issues with mach_vm_readoverwrite
- From: Evan Schoffstall <email@hidden>
- Date: Fri, 09 Sep 2011 19:55:23 -0400
Darwin brothers,
I'm having some issues with virtual memory, I thought you guys could help.
Here are some givens
enslavementTask is an extern which is already defined.
the value worldState is at address 0x01
Now to the code.
UInt64 offset = 0x01;
UInt64 worldState = 0;
mach_vm_size_t currentBlockSize = worldState;
kern_return_t kReturn;
kReturn = mach_vm_read_overwrite(enslavementTask,offset,currentBlockSize,(vm_address_t)worldState,¤tBlockSize);
printf("kReturn is returning %i\nWorld State is: %llu\n",kReturn,offset);
kReturn returns 0 (SUCESS) but worldState stays the same despite the actual value changing in the application i'm reading from.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden