Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

[release/3.1] WriteAsync may truncate data after Advance(int) #43124

Merged
merged 1 commit into from
Jan 3, 2022

Conversation

BrennanConroy
Copy link
Member

Backport of #62306

Customer Impact

Customer reported issue. This can result in corrupted data (missing bytes in the middle of a Read) when using pipes with a mix of GetSpan() + Advance() and WriteAsync()

Testing

New test was written for the scenario, current test coverage gives high confidence no regressions will occur.

Risk

Low. The fix is well understood and very little code change.

@BrennanConroy BrennanConroy added the Servicing-consider Issue for next servicing release review label Dec 3, 2021
@BrennanConroy BrennanConroy added this to the 3.1.x milestone Dec 3, 2021
@BrennanConroy BrennanConroy force-pushed the brecon/bpWriteAsync branch 2 times, most recently from 0f44de2 to b774c7c Compare December 3, 2021 20:12
@halter73 halter73 changed the title [Backport] WriteAsync may truncate data after Advance(int) [release/3.1] WriteAsync may truncate data after Advance(int) Dec 14, 2021
@halter73 halter73 added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Dec 14, 2021
@safern safern merged commit 04efe10 into dotnet:release/3.1 Jan 3, 2022
@BrennanConroy BrennanConroy deleted the brecon/bpWriteAsync branch January 3, 2022 17:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants