-
-
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
inconsistent errors with negative dimensions in Array constructor #28597
Comments
Ah, good catch! |
StefanKarpinski
added
the
bug
Indicates an unexpected problem or unintended behavior
label
Aug 14, 2018
There is some int/uint conversion stuff going on here. The array allocators's size argument is Line 414 in 3fe2d08
Int , see Lines 394 to 395 in 3fe2d08
so e.g. -1 becomes a very large number which errors in Lines 63 to 68 in 3fe2d08
prod becomes zero.
|
JeffBezanson
added a commit
that referenced
this issue
Aug 14, 2018
KristofferC
pushed a commit
that referenced
this issue
Aug 19, 2018
KristofferC
pushed a commit
that referenced
this issue
Aug 19, 2018
Merged
KristofferC
pushed a commit
that referenced
this issue
Aug 19, 2018
KristofferC
pushed a commit
that referenced
this issue
Sep 8, 2018
KristofferC
pushed a commit
that referenced
this issue
Sep 8, 2018
KristofferC
pushed a commit
that referenced
this issue
Feb 11, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was reported on slack:
This comes from the
_new_array_
function in "array.c", which computes the product of the dimensions: if0
comes first, then the product is0
and doesn't grow out of bounds.The text was updated successfully, but these errors were encountered: