mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcAppleKernelLib: Fix memory corruption with many kexts in 11.0
This commit is contained in:
parent
f1e8766af9
commit
32bf419136
@ -201,7 +201,7 @@ KcRebuildMachHeader (
|
||||
|
||||
CurrentSize = MachHeader->CommandsSize + sizeof (*MachHeader);
|
||||
FilesetSize = InternalKcGetKextFilesetSize (Context);
|
||||
RequiredSize = FilesetSize + sizeof (MACH_LOAD_COMMAND_SEGMENT_64) + Context->PrelinkedInfoSegment->CommandSize;
|
||||
RequiredSize = FilesetSize + sizeof (MACH_SEGMENT_COMMAND_64) + Context->PrelinkedInfoSegment->CommandSize;
|
||||
|
||||
TextSegment = MachoGetSegmentByName64 (
|
||||
&Context->PrelinkedMachContext,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user