Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 563f5de

Browse files
committed
Merge pull request #2909 from shmao/ncl
Fixed a loss of streamed bytes issue.
2 parents e2e6dcc + a9fa1e9 commit 563f5de

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/System.Private.DataContractSerialization/src/System/Xml/XmlBaseReader.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,12 @@ public override XmlNodeType MoveToContent()
832832
{
833833
if (_node.NodeType != XmlNodeType.Text && _node.NodeType != XmlNodeType.CDATA)
834834
break;
835+
836+
if (_trailByteCount > 0)
837+
{
838+
break;
839+
}
840+
835841
if (_value == null)
836842
{
837843
if (!_node.Value.IsWhitespace())

0 commit comments

Comments
 (0)