Index: src/runtime/selector.m ================================================================== --- src/runtime/selector.m +++ src/runtime/selector.m @@ -58,10 +58,13 @@ return; } hash++; } + + if (hash >= last) + ERROR("Selector slots exhausted!"); } objc_sparsearray_set(selectors, hash, (void*)sel->name); rsel->uid = hash; }