OcAppleKernelLib: Clarify SymbolNumber may not be 0 for sections.
Wrapping around to MAX_UINT32 will cause failure as NumSymbols is UINT32, however it's better to be clear.
@@ -552,6 +552,10 @@ InternalCalculateTargetsIntel64 (
TargetAddress = Symbol->Value;
} else {
+ if (Relocation->SymbolNumber == 0) {
+ return FALSE;
+ }
+
Section = MachoGetSectionByIndex64 (
MachoContext,
(Relocation->SymbolNumber - 1)
