OcAppleKernelLib: Skip STABs during prelinked KEXT VTable enum.

This commit is contained in:
Download-Fritz 2019-03-27 10:47:32 +01:00
parent 5d1901ac52
commit 146faf684d

View File

@ -242,6 +242,10 @@ InternalPrepareCreateVtablesPrelinked64 (
for (Index = 0; Index < NumSymbols; ++Index) {
Symbol = &SymbolTable[Index];
if (((Symbol->Type) & MACH_N_TYPE_STAB) != 0) {
continue;
}
Name = MachoGetSymbolName64 (MachoContext, Symbol);
if (MachoSymbolNameIsVtable64 (Name)) {
if (VtableIndex >= MaxSize) {