Chameleon

Chameleon Commit Details

Date:2010-10-30 23:08:46 (13 years 5 months ago)
Author:Azimutz
Commit:626
Parents: 625
Message:Kernel Patcher fix from rev 597.
Changes:
M/branches/azimutz/Chazi/i386/modules/KernelPatcher/kernel_patcher.c

File differences

branches/azimutz/Chazi/i386/modules/KernelPatcher/kernel_patcher.c
224224
225225
226226
227
228
229227
230228
231
232
233
234
235229
236230
231
237232
238233
239234
......
461456
462457
463458
464
459
465460
466461
467462
// Locate the symbol in the list, if it exists, update it's address
kernSymbols_t *symbol = lookup_kernel_symbol(symbolName);
if(symbol)
{
//printf("Located %sbit symbol %s at 0x%lX\n", is64 ? "64" : "32", symbolName, addr);
//getc();
symbol->addr = addr;
}
return 0xFFFFFFFF; // fixme
}
// NOTE: This will *NOT* be located on pre 10.6.2 kernels
jumpLocation = patchLocation - 15;
while((bytes[jumpLocation - 1] != 0x77 ||
bytes[jumpLocation] != (patchLocation - jumpLocation - -8)) &&
bytes[jumpLocation] != (patchLocation - jumpLocation - 18)) &&
(patchLocation - jumpLocation) < 0xF0)
{
jumpLocation--;

Archive Download the corresponding diff file

Revision: 626