Skip to content

Conversation

@shreyas-omkar
Copy link

Fixes #53907

The subtraction A[k][1]-length(vdots) could underflow if A[k][1]
was a UInt (e.g., UInt(0)), leading to a massive string
allocation. This commit casts the values to Int before the
subtraction to prevent the underflow.

@shreyas-omkar shreyas-omkar force-pushed the fix-arrayshow-unsigned-v2 branch from d8b0986 to da08f2f Compare October 21, 2025 15:09
@oscardssmith oscardssmith added the needs tests Unit tests are required for this change label Oct 21, 2025
@shreyas-omkar shreyas-omkar force-pushed the fix-arrayshow-unsigned-v2 branch from da08f2f to ef6e5dd Compare November 1, 2025 19:03
@shreyas-omkar shreyas-omkar force-pushed the fix-arrayshow-unsigned-v2 branch from ef6e5dd to 19d8273 Compare November 9, 2025 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs tests Unit tests are required for this change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Displaying array with unsigned indices throws

4 participants