Permalink
Switch branches/tags
Nothing to show
Commits on Dec 20, 2011
  1. cleaned up warnings

    committed Dec 20, 2011
Commits on Dec 19, 2011
  1. updated project settings

    committed Dec 19, 2011
Commits on Nov 9, 2011
  1. Merge pull request #26 from ashcatch/pending_pull_requests

    add another 64bit instruction
    rentzsch committed Nov 9, 2011
Commits on Nov 2, 2011
  1. add another 64bit instruction

    I got this when trying to overwrite a symbol in a 64bit Qt 4.6.1 build.
    ashcatch committed Nov 2, 2011
Commits on Oct 12, 2011
  1. Merge pull request #22 from lapcat/master

    A few fixes, including compatibility with Rogue Amoeba's Instant On.
    rentzsch committed Oct 12, 2011
Commits on Oct 10, 2011
  1. Allow mach_override to patch and relocate code that has already been …

    …patched or might otherwise contain relative jmp instructions. This fixes incompatibility with Rogue Amoeba's Instant On component.
    lapcat committed Oct 10, 2011
  2. Comment out testSystemFunctionOverrideByName, because it doesn't comp…

    …ile. It looks like it's based on obsolete code.
    lapcat committed Oct 10, 2011
Commits on Sep 22, 2011
  1. Merge pull request #19 from mark-chromium/mach_star

    ---
    
    Go back to pre-51ae3d199463fa84548f466d649f0821d579fdaf branch islands for PowerPC. Because PowerPC uses ba (branch absolute) to jump to branch islands, the islands must be somewhere in the lowest or highest 32MB of address space.
    rentzsch committed Sep 22, 2011
  2. Merge pull request #18 from albertz/mach_star

    ---
    
    Some cleanup (better suited for production use).
    Some additions.
    Also to stderr instead of stdout.
    
    Not sure if you want to merge this (or how you think about such changes). Those are just my changes I have laying around here. I think I also will comment out my additions later on (because it works good now for me) and maybe you want to wait for that before merging.
    rentzsch committed Sep 22, 2011
  3. Merge pull request #17 from albertz/mach_star

    ---
    
    mostly Xcode4 related
    rentzsch committed Sep 22, 2011
  4. Merge pull request #16 from albertz/mach_star

    ---
    
    xcuserdata is the new dir for user data in Xcode projects (when opened in Xcode4)
    rentzsch committed Sep 22, 2011
  5. Merge pull request #15 from albertz/mach_star

    ---
    
    see bug #11
    
    Im not sure if you want to merge this already. But this is what works on 10.7, so maybe it is better to have this in right now (with this comment or some other comment) and add some further code later on if there are problems for other people.
    rentzsch committed Sep 22, 2011
  6. Merge pull request #14 from albertz/mach_star

    ---
    
    this is bug #13
    rentzsch committed Sep 22, 2011
  7. Go back to pre-51ae3d199463fa84548f466d649f0821d579fdaf branch island…

    …s for PowerPC. Because PowerPC uses ba (branch absolute) to jump to branch islands, the islands must be somewhere in the lowest or highest 32MB of address space.
    markmentovai committed Sep 22, 2011
Commits on Sep 17, 2011
  1. updated Xcode project

    albertz committed Sep 5, 2011
  2. gitignore: Xcode4 files

    albertz committed Sep 5, 2011
Commits on Aug 19, 2011
  1. Merge pull request #10 from rsesek/malloc_error_break_10-5

    [NEW] Allow mach_override to patch empty function bodies. (Robert Sesek)
    rentzsch committed Aug 19, 2011
  2. Allow mach_override to patch empty function bodies.

    On 10.5, malloc_error_break is a whopping five instructions long:
    0x01e314ae <malloc_error_break+0>:      push   %ebp
    0x01e314af <malloc_error_break+1>:      mov    %esp,%ebp
    0x01e314b1 <malloc_error_break+3>:      leave
    0x01e314b2 <malloc_error_break+4>:      ret
    
    If you want to patch this, the normal facilities by which mach_override works
    will not hook this because it does not eat leave/ret, for good reason.
    
    This adds the whole body of the above assembly to the beginning of
    possibleInstructions so that if you override a method like this, it succeeds.
    
    On 10.6 and 10.7, the assembly has changed to include two nop instructions,
    making it large enough to override.
    rsesek committed Aug 19, 2011
  3. Merge pull request #9 from rsesek/fprint-stderr

    [CHANGE] Print errors in mach_override to stderr rather than stdout. (Robert Sesek)
    rentzsch committed Aug 19, 2011
Commits on Aug 18, 2011
  1. Print errors in mach_override to stderr rather than stdout, and inclu…

    …de the __FILE__ to make the source clear.
    rsesek committed Aug 18, 2011
Commits on Jul 25, 2011
  1. Merge pull request #8 from sdem/master

    fixes mach_override.c for overriding AudioOutputUnitStart() and other functions in Lion (32/64).
    rentzsch committed Jul 25, 2011
  2. This addresses overriding such functions as AudioOutputUnitStart() in…

    … Lion. There seems to be some double indirection before getting to the actual function.
    
    In 32 bits: jmp .+0x???????? then jmp *0x????????
    In 64 bits: jmp .+0x???????? then jmp qword near [rip+0x????????]
    The fix works for both 32 and 64 bits.
    This could be addressed outside of mach_star, but then it would not be possible to use the MACH_OVERRIDE macro.
    Also, small (potential) bug fix: try making islands executable *before* planting the jmp.
    sdem committed Jul 25, 2011
Commits on Jul 22, 2011
Commits on Jul 13, 2011
Commits on Jun 25, 2011
  1. Merge pull request #5 from mkrautz/vm-protect-size

    Change size of region in vm_protect calls to be 8.
    rentzsch committed Jun 25, 2011