Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSConstantArray need add to the hook list #35

Open
luyinuo opened this issue Jul 22, 2024 · 0 comments
Open

NSConstantArray need add to the hook list #35

luyinuo opened this issue Jul 22, 2024 · 0 comments

Comments

@luyinuo
Copy link

luyinuo commented Jul 22, 2024

Test Case:
NSArray *arr = @[@"1",@"2",@"2",@"2",@"2",@"2",@"2",@"2",@"2"];
arr[100]
[arr objectAtIndex:100]
Crash Error:
Uncaught exception: NSRangeException: ***
-[NSConstantArray objectAtIndex:]: index 100 beyond bounds [0 .. 8]
-[NSConstantArray objectAtIndexedSubscript:]: index 100 beyond bounds [0 .. 8]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant