Skip to content

Commit

Permalink
Hardened solved symbol verification to avoid panics with broken kext …
Browse files Browse the repository at this point in the history
…cache
  • Loading branch information
PMheart committed Apr 4, 2018
1 parent 7a2e4e5 commit a384618
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
2 changes: 1 addition & 1 deletion CPUFriend/CPUFriend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void CPUFriendPlugin::processKext(KernelPatcher &patcher, size_t index, mach_vm_
// clear error from the very beginning just in case
patcher.clearError();
if (i == KextX86) {
auto callback = patcher.solveSymbol(index, "__ZN17X86PlatformPlugin22configResourceCallbackEjiPKvjPv");
auto callback = patcher.solveSymbol(index, "__ZN17X86PlatformPlugin22configResourceCallbackEjiPKvjPv", address, size);
if (callback) {
orgConfigLoadCallback = reinterpret_cast<t_callback>(patcher.routeFunction(callback, reinterpret_cast<mach_vm_address_t>(myConfigResourceCallback), true));

Expand Down

0 comments on commit a384618

Please sign in to comment.