From 25ea29a92da4854cea20bb7913d429cea949a42e Mon Sep 17 00:00:00 2001 From: Download-Fritz Date: Thu, 28 Mar 2019 19:06:09 +0100 Subject: [PATCH] OcAppleKernelLib: Reassign RelocationsSize after preserving relocs. --- Library/OcAppleKernelLib/Link.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/OcAppleKernelLib/Link.c b/Library/OcAppleKernelLib/Link.c index 8d7e5019..7281ee5e 100644 --- a/Library/OcAppleKernelLib/Link.c +++ b/Library/OcAppleKernelLib/Link.c @@ -1362,6 +1362,7 @@ InternalPrelinkKext64 ( return RETURN_LOAD_ERROR; } NumRelocations += NumRelocations2; + RelocationsSize = (NumRelocations * sizeof (MACH_RELOCATION_INFO)); // // Copy the entire symbol table excluding the area for undefined symbols. //