Skip to content

想问一下为什么这里有个等号?照理说下标要比数量少1的。然后有第三方库奔溃在这,但是这库没开源,麻烦看一下 #141

@kedu

Description

@kedu
  • (void) hookInsertObject:(id)anObject atIndex:(NSUInteger)index {
    if (anObject && index <= self.count) {
    [self hookInsertObject:anObject atIndex:index];
    }else{
    handleCrashException(JJExceptionGuardArrayContainer,[NSString stringWithFormat:@"NSMutableArray insertObject invalid index:%tu total:%tu insert object:%@",index,self.count,anObject]);
    }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions