mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-01-23 21:11:32 +01:00
avoid infinite loop while kext patch
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
parent
773bb86427
commit
5eef6624f1
@ -1010,6 +1010,10 @@ VOID AnyKextPatch(UINT8 *Driver, UINT32 DriverSize, CHAR8 *InfoPlist, UINT32 Inf
|
|||||||
j += Entry->KernelAndKextPatches->KextPatches[N].SearchLen - 1;
|
j += Entry->KernelAndKextPatches->KextPatches[N].SearchLen - 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!Entry->KernelAndKextPatches->KextPatches[i].StartPattern ||
|
||||||
|
!Entry->KernelAndKextPatches->KextPatches[i].StartPatternLen) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
j++; curs++;
|
j++; curs++;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user