Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

#59422
Merged
wtgodbe merged 1 commit into
release/9.0dotnet/aspnetcore:release/9.0from
backport/pr-59360-to-release/9.0dotnet/aspnetcore:backport/pr-59360-to-release/9.0Copy head branch name to clipboard
Jan 7, 2025
Merged

[release/9.0] Fix MultipartReaderStream synchronous read when using buffer offset#59422
wtgodbe merged 1 commit into
release/9.0dotnet/aspnetcore:release/9.0from
backport/pr-59360-to-release/9.0dotnet/aspnetcore:backport/pr-59360-to-release/9.0Copy head branch name to clipboard

Conversation

@github-actions

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

Copy link
Copy Markdown
Contributor

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 Jul 20, 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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.