Chameleon

Chameleon Commit Details

Date:2011-01-31 15:45:30 (9 years 4 months ago)
Author:Evan Lojewski
Commit:726
Parents: 725
Message:Revert changes from slices commit (r721) in my branch
Changes:
M/branches/meklort/i386/modules
M/branches/meklort/i386/modules/KextPatcher/kext_patcher.c

File differences

branches/meklort/i386/modules/KextPatcher/kext_patcher.c
8989
9090
9191
92
92
9393
9494
9595
......
161161
162162
163163
164
164
165165
166166
167167
......
319319
320320
321321
322
322
323323
324324
325325
}
//unsigned long Mkext_Alder32( unsigned char * buffer, long length );
unsigned long Mkext_Alder32( unsigned char * buffer, long length );
void KextPatcher_hook(void* current, void* arg2, void* arg3, void* arg4);
( MKEXT_GET_SIGNATURE(package)!= MKEXT_SIGN ) ||
( MKEXT_GET_LENGTH(package)> kLoadSize ) ||
( MKEXT_GET_CHECKSUM(package) !=
Adler32((unsigned char *)&package->version, MKEXT_GET_LENGTH(package) - 0x10) ) )
Mkext_Alder32((unsigned char *)&package->version, MKEXT_GET_LENGTH(package) - 0x10) ) )
{
return;
// Don't try to patch a b
// re alder32 the new mkext2 package
MKEXT_HDR_CAST(package)->adler32 =
MKEXT_SWAP(Adler32((unsigned char *)&package->version,
MKEXT_SWAP(Mkext_Alder32((unsigned char *)&package->version,
MKEXT_GET_LENGTH(package) - 0x10));
}
}

Archive Download the corresponding diff file

Revision: 726