1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-25 23:21:26 +03:00

Fix double counting of CRLF in comments

Fixes #151.
This commit is contained in:
Nick Wellnhofer 2022-02-07 20:38:30 +01:00
parent b14649e397
commit 9edc20c154
6 changed files with 26 additions and 1 deletions

View File

@ -4982,7 +4982,7 @@ get_more:
ctxt->input->cur = in;
in++;
ctxt->input->line++; ctxt->input->col = 1;
continue; /* while */
goto get_more;
}
in--;
}

View File

View File

@ -0,0 +1,6 @@
./test/errors/issue151.xml:8: parser error : StartTag: invalid element name
<<
^
./test/errors/issue151.xml:8: parser error : StartTag: invalid element name
<<
^

View File

@ -0,0 +1,6 @@
./test/errors/issue151.xml:8: parser error : StartTag: invalid element name
<<
^
./test/errors/issue151.xml:8: parser error : StartTag: invalid element name
<<
^

View File

@ -0,0 +1,4 @@
./test/errors/issue151.xml:8: parser error : StartTag: invalid element name
<<
^
./test/errors/issue151.xml : failed to parse

9
test/errors/issue151.xml Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<foo />
<!--
0D 0A 0D 0A:
-->
<<
</root>