You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error I'm seeing is this: panic: runtime error: index out of range [7] with length 7
This is because the total variable inside the Allocate gets an integer overflow and starts to go into the negative values, so the "leftover amounts" never get to zero.
The text was updated successfully, but these errors were encountered:
Hello, we've got an integer overflow with the following code: https://go.dev/play/p/FjI8rCyWG3J
Code here as well:
The error I'm seeing is this:
panic: runtime error: index out of range [7] with length 7
This is because the
total
variable inside theAllocate
gets an integer overflow and starts to go into the negative values, so the "leftover amounts" never get to zero.The text was updated successfully, but these errors were encountered: