-
-
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
Julia 1.11: IOBuffer does not update size of a user specified array #55978
Comments
Is this a bug? I mean then in 1.10, not 1.11? Are the |
Based on the documentation I would interpret this as a bug (but maybe the documentation should be changed instead?)
If it operates on the array, presumably writing past the end of the array should either error (happens with no julia version that I know of) or expand the size of the array (the behavior from prior Julia versions). What is happening in the above example? Is it writing to a different buffer, or is it writing to invalid memory that occurs past the end of the array? |
One guess: the new Definitely seems like a change in behavior to me. This is easy to fix in my case, I think, but this seems like it could easily lead to silent bugs, if users of |
The correct way to get back a buffer was always to call |
In julia 1.10:
But with the current Julia 1.11 release candidate:
The text was updated successfully, but these errors were encountered: