-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add propagate_inbounds to new getindex method #39996
Comments
Ah, that looks like it was missed. Note however that reading arrays out of bounds should always be avoided nevertheless and can lead to segfaults. |
I would like to contribute to this issue. Do guide me on approaching this @simeonschaub @jakobnissen |
@Kahanikaar Nice! You would need to clone the Julia repo. Then go to the relevant file and add To verify it worked, you can run my test code. If you don't see a BoundsError, it probably worked. To be sure, you can run |
Initial PR made. Do review. @jakobnissen @simeonschaub |
Closed by #40281? |
Yes, looks like it! Thanks for your PR anyway, @Kahanikaar |
MWE:
And then
According to Nicholas Bauer on Slack, the culprit is
julia/base/abstractarray.jl
Line 1051 in 0b55425
added in #36427 which lacks propagate inbounds.
The text was updated successfully, but these errors were encountered: