Skip to content

PipeWriter.UnflushedBytes long property wraps to negative numbers after int.MaxValue #11351

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

Closed
wants to merge 2 commits into from

Conversation

pedrobsaila
Copy link
Contributor

@pedrobsaila pedrobsaila commented May 25, 2025

Summary

The method Advance(int size) throws an exception when its internal unflushed buffer size overflows long.MaxValue instead of silently having UnflushedBytes property with negative value

Contributes to dotnet/runtime#109513

@pedrobsaila pedrobsaila requested a review from halter73 as a code owner May 25, 2025 18:37
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label May 25, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label May 25, 2025
@PranavSenthilnathan PranavSenthilnathan added area-System.IO.Pipelines and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels May 28, 2025
@pedrobsaila
Copy link
Contributor Author

I was being advised not to throw OverflowException exception in this method. Closing the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.IO.Pipelines community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants