Skip to content

Commit

Permalink
Merge pull request #9 from mulle-nat/semver-1.x
Browse files Browse the repository at this point in the history
[DEV] Added an error check. (Mulle kybernetiK)
  • Loading branch information
rentzsch committed Nov 4, 2013
2 parents eaf960c + 7da553c commit 2d4de95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mach_inject/mach_inject.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ mach_inject(
vm_address_t remoteCode = (vm_address_t)NULL;
if( !err )
err = vm_allocate( remoteTask, &remoteCode, imageSize, 1 );
if( !err )
err = vm_protect(remoteTask, remoteCode, imageSize, 0, VM_PROT_EXECUTE | VM_PROT_WRITE | VM_PROT_READ);
if( !err ) {
ASSERT_CAST( pointer_t, image );
Expand Down

0 comments on commit 2d4de95

Please sign in to comment.