AppleOcKernelLib: Do not index STAB symbols when scanning prelinked KEXTs.

This commit is contained in:
Download-Fritz 2019-03-27 13:08:56 +01:00
parent 146faf684d
commit ad5d46f9af

View File

@ -253,6 +253,11 @@ InternalScanBuildLinkedSymbolTable (
for (Index = 0; Index < Kext->NumberOfSymbols; ++Index) {
Symbol = &Kext->SymbolTable[Index];
if ((Symbol->Type & MACH_N_TYPE_STAB) != 0) {
++NumDiscardedSyms;
continue;
}
Name = MachoGetSymbolName64 (&Kext->Context.MachContext, Symbol);
Result = MachoSymbolNameIsCxx (Name);