Skip to content
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

[release/9.0] Fix MultipartReaderStream synchronous read when using buffer offset #59422

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Dec 10, 2024

Backport of #59360 to release/9.0

/cc @BrennanConroy

Fix MultipartReaderStream synchronous read when using buffer offset

Description

When synchronously reading a multipart section and using a non-zero offset value for the passed in buffer, we incorrectly ignored the offset and would write into the buffer starting at the beginning. This would overwrite previous data in the buffer which corrupts the user payload.

Fixes #59269

Customer Impact

Corrupted buffer data for a multipart section.

Regression?

  • Yes
  • No

Regressed in 9.0

Risk

  • High
  • Medium
  • Low

Silly error around not using the buffer offset. Added missing test coverage.

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions label Dec 10, 2024
@dotnet-policy-service dotnet-policy-service bot added this to the 9.0.x milestone Dec 10, 2024
@BrennanConroy BrennanConroy added Servicing-consider Shiproom approval is required for the issue Servicing-approved Shiproom has approved the issue and removed Servicing-consider Shiproom approval is required for the issue labels Dec 10, 2024
@dotnet-policy-service dotnet-policy-service bot added the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun Servicing-approved Shiproom has approved the issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants