Commit 25489085 authored by Dario Bertini's avatar Dario Bertini Committed by Ben Gamari

rts/MachO: Iterate through N (all) symbols, not M external symbols

Fixes #15105
parent b2f6f896
......@@ -1661,7 +1661,7 @@ ocGetNames_MachO(ObjectCode* oc)
commonCounter = (unsigned long)commonStorage;
if (oc->info->symCmd) {
for (int i = 0; i < oc->n_symbols; i++) {
for (size_t i = 0; i < oc->info->n_macho_symbols; i++) {
SymbolName* nm = oc->info->macho_symbols[i].name;
MachONList *nlist = &oc->info->nlist[i];
if((nlist->n_type & N_TYPE) == N_UNDF
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment