Skip to content

Commit

Permalink
skip unaddressable method list
Browse files Browse the repository at this point in the history
  • Loading branch information
zydeco committed Aug 15, 2020
1 parent 68f48f8 commit 842fdc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/objc-cif.m
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ hidden void cif_cache_add_class(const char *name) {
#define RW_REALIZING (1 << 19)

hidden void load_objc_methods(struct method_list *methods, bool meta, const char *name) {
if (methods == NULL) {
if (methods == NULL || (vm_offset_t)methods > VM_MAX_USER_PAGE_ADDRESS) {
return;
}
for(uint32_t i = 0; i < methods->count; i++) {
Expand Down

0 comments on commit 842fdc1

Please sign in to comment.