Skip to content

Conversation

khituras
Copy link
Contributor

@khituras khituras commented Jul 2, 2021

The _surrogate field in ByteXmlWriter serves as a memory across buffers in these cases. However, after writing the original multi-byte character, the field was not set back to 0 which caused the XmlWriter to think there were another surrogate pair where there were none.

This could cause two sorts of errors for which this PR provides new tests. Both tests will fail when the reset of _surrogate is removed.

khituras added 2 commits July 2, 2021 15:19
…ffer.

The `_surrogate` field in `ByteXmlWriter` serves as a memory across buffers in these cases. However, after writing the original multi-byte character, the field was not set back to 0 which caused the XmlWriter to think there were another surrogate pair where there were none.
@cowtowncoder cowtowncoder added this to the 1.3.1 milestone Jan 14, 2022
@cowtowncoder
Copy link
Member

Hi @khituras! First of all, apologies for missing this PR. Thank you for pinging me.

Patch makes sense, along with test, so I will merge it and release 1.3.1.

@cowtowncoder cowtowncoder merged commit c000880 into FasterXML:master Jan 14, 2022
cowtowncoder added a commit that referenced this pull request Jan 14, 2022
@khituras
Copy link
Contributor Author

khituras commented Jan 14, 2022 via email

@cowtowncoder
Copy link
Member

@khituras Thank you for fixing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants