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

Ensure ReadBufferState resets any BOM offsets every time the buffer is advanced. #78221

Merged
merged 3 commits into from
Nov 11, 2022

Conversation

eiriktsarpalis
Copy link
Member

@eiriktsarpalis eiriktsarpalis commented Nov 11, 2022

Fixes a reported regression from .NET 6 where the STJ async reader will skip a number of bytes from the source stream in certain cases where a BOM is included.

Should be backported to release/7.0

@ghost
Copy link

ghost commented Nov 11, 2022

Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes a reported regression from .NET 6 where the STJ async reader will skip a number of bytes from the source stream in certain cases where a BOM is included.

Author: eiriktsarpalis
Assignees: -
Labels:

area-System.Text.Json

Milestone: -

@eiriktsarpalis eiriktsarpalis added this to the 8.0.0 milestone Nov 11, 2022
@eiriktsarpalis eiriktsarpalis added tenet-reliability Reliability/stability related issue (stress, load problems, etc.) and removed tenet-reliability Reliability/stability related issue (stress, load problems, etc.) labels Nov 11, 2022
…rialization/JsonSerializerWrapper.Reflection.cs
@eiriktsarpalis eiriktsarpalis merged commit 2b1f57e into dotnet:main Nov 11, 2022
@eiriktsarpalis eiriktsarpalis deleted the fix-bom-handling branch November 11, 2022 17:54
@eiriktsarpalis
Copy link
Member Author

/backport to release/7.0

@github-actions
Copy link
Contributor

Started backporting to release/7.0: https://github.com/dotnet/runtime/actions/runs/3446988329

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants