OcMachoLib: Skip when an insane symbol is hit. Don't re-sanity-check.
@@ -398,7 +398,7 @@ InternalGetSymbolByName (
for (Index = 0; Index < NumberOfSymbols; ++Index) {
if (!InternalSymbolIsSane (Context, &SymbolTable[Index])) {
- continue;
+ break;
}
TmpName = MachoGetSymbolName64 (Context, &SymbolTable[Index]);
if (AsciiStrCmp (Name, TmpName) == 0) {
@@ -463,10 +463,6 @@ MachoGetLocalDefinedSymbolByName (
);
}
- if ((Symbol != NULL) && !InternalSymbolIsSane (Context, Symbol)) {
- return NULL;
- }
-
return Symbol;
}
