Skip to content

Commit 6c413b4

Browse files
committed
Fix missing safePosition in SkipEndElement
1 parent f7f5be0 commit 6c413b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

MinimalXmlReader/MiniXmlReader.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,11 @@ public bool SkipEndElement()
197197
{
198198
_ = SkipSpaces();
199199

200+
var safePosition = position;
201+
200202
if (!SkipChar('<') || !SkipChar('/'))
201203
{
204+
position = safePosition;
202205
return false;
203206
}
204207

0 commit comments

Comments
 (0)