We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This loop in growslice can loop for a very long (minutes, possibly infinitly) time due to overflow with very high cap sizes: https://github.com/golang/go/blob/master/src/runtime/slice.go#L108
Can be triggered on Darwin GOARCH=386 tip 816deac with:
x = make([]byte, 1<<30-1, 1<<30-1) x = append(x, x...)
https://play.golang.org/p/Y-P-O4yWno
Assigning myself to work on a CL to guard that loop from overflow.
/cc @randall77 @josharian
The text was updated successfully, but these errors were encountered:
Change https://golang.org/cl/57950 mentions this issue: runtime: avoid infinite loop in growslice
runtime: avoid infinite loop in growslice
Sorry, something went wrong.
f3e0d14
No branches or pull requests
This loop in growslice can loop for a very long (minutes, possibly infinitly) time due to overflow with very high cap sizes:
https://github.com/golang/go/blob/master/src/runtime/slice.go#L108
Can be triggered on Darwin GOARCH=386 tip 816deac with:
https://play.golang.org/p/Y-P-O4yWno
Assigning myself to work on a CL to guard that loop from overflow.
/cc @randall77 @josharian
The text was updated successfully, but these errors were encountered: