-
Notifications
You must be signed in to change notification settings - Fork 5k
Fixes #62167. WriteAsync may truncate data if called after .Advance(int) #62306
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
Conversation
…nts if called after an .Advance(int)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great find!
While this is an unusual writing pattern, it is valid. You can get corrupted data without this fix. We should service this. |
thanks @Kuinox ! |
I use this pattern to write an user provided buffer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Old bug it seems!
Thanks a lot @Kuinox! |
/backport to release/6.0 |
Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1536724263 |
/backport to release/5.0 |
Started backporting to release/5.0: https://github.com/dotnet/runtime/actions/runs/1536755422 |
Thanks everyone ! |
Thank you! |
Fixes #62167.
It took me way too much time to pinpoint where this issue came from ^^'.