Skip to content

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

Merged
wtgodbe merged 1 commit intorelease/9.0from
backport/pr-59360-to-release/9.0
Jan 7, 2025
Merged

[release/9.0] Fix MultipartReaderStream synchronous read when using buffer offset#59422
wtgodbe merged 1 commit intorelease/9.0from
backport/pr-59360-to-release/9.0

Conversation

@github-actions
Copy link
Copy Markdown
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

@ghost ghost 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
@wtgodbe wtgodbe merged commit 1d1d5a7 into release/9.0 Jan 7, 2025
@wtgodbe wtgodbe deleted the backport/pr-59360-to-release/9.0 branch January 7, 2025 22:30
@dotnet-policy-service dotnet-policy-service bot modified the milestones: 9.0.x, 9.0.2 Jan 7, 2025
This was referenced Mar 23, 2026
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