-
-
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
Fix reverse of ranges of unsigned integers #29842
Conversation
Cool, inexact is very preferable to segfault, and your PR points out the problem:
should maybe become
which would fix the pointer range. On the other hand, this still smells very brittle. Do we need to support ranges with larger than |
bf40245
to
68afe07
Compare
I've expanded this more, and think we should merge, but adding triage label in case someone wants to contest it. I noticed after pushing this that there might also be a case in |
:D
|
Fixes #29576 Co-authored-by: Jameson Nash <vtjnash@gmail.com> Co-authored-by: Lilith Orion Hafner <60898866+LilithHafner@users.noreply.github.com>
68afe07
to
f7e3259
Compare
Is this ready to merge? |
It has the triage label, but we could also merge now, and then see if anyone has feedback |
We cannot safely use reverse, so we do not anymore. That is now causing conflict between JuliaLang#43059 and JuliaLang#29842. And this is likely clearer anyways. Closes JuliaLang#43788
We cannot safely use reverse, so we do not anymore. That is now causing conflict between JuliaLang#43059 and JuliaLang#29842. And this is likely clearer anyways. Closes JuliaLang#43788
Fixes JuliaLang#29576 Co-authored-by: Jameson Nash <vtjnash@gmail.com> Co-authored-by: Lilith Orion Hafner <60898866+LilithHafner@users.noreply.github.com>
We cannot safely use reverse, so we do not anymore. That is now causing conflict between JuliaLang#43059 and JuliaLang#29842. And this is likely clearer anyways. Closes JuliaLang#43788
Fixes JuliaLang#29576 Co-authored-by: Jameson Nash <vtjnash@gmail.com> Co-authored-by: Lilith Orion Hafner <60898866+LilithHafner@users.noreply.github.com>
We cannot safely use reverse, so we do not anymore. That is now causing conflict between JuliaLang#43059 and JuliaLang#29842. And this is likely clearer anyways. Closes JuliaLang#43788
Fixes #29576,
works aroundimproves #29810.Edit: well, works around might be a little strong. It changes a segfault to an inexact error, so this doesn't add support for reversing ranges of pointers (hence the lack of tests thereof).
Closes #42718