Skip to content

Commit 3c9fb16

Browse files
committed
Merge pull request dotnet/corefx#2909 from shmao/ncl
Fixed a loss of streamed bytes issue. Commit migrated from dotnet/corefx@563f5de
2 parents 680c39d + 7b06011 commit 3c9fb16

File tree

1 file changed

+6
-0
lines changed
  • src/libraries/System.Private.DataContractSerialization/src/System/Xml

1 file changed

+6
-0
lines changed

src/libraries/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)