Skip to content

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

Merged
eiriktsarpalis merged 3 commits into
dotnet:mainfrom
eiriktsarpalis:fix-bom-handling
Nov 11, 2022
Merged

Ensure ReadBufferState resets any BOM offsets every time the buffer is advanced.#78221
eiriktsarpalis merged 3 commits into
dotnet:mainfrom
eiriktsarpalis:fix-bom-handling

Conversation

@eiriktsarpalis

@eiriktsarpaliseiriktsarpalis commented Nov 11, 2022

Copy link
Copy Markdown
Member

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
Copy Markdown

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:-

@eiriktsarpaliseiriktsarpalis added this to the 8.0.0 milestone Nov 11, 2022
@eiriktsarpaliseiriktsarpalis 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:mainNov 11, 2022
@eiriktsarpalis
eiriktsarpalis deleted the fix-bom-handling branch November 11, 2022 17:54
@eiriktsarpalis

Copy link
Copy Markdown
MemberAuthor

/backport to release/7.0

@github-actions

Copy link
Copy Markdown
Contributor

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

Sign up for freeto 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

@eiriktsarpalis@steveharter