mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
wrong error column in structured error when parsing end tag
For https://bugzilla.gnome.org/show_bug.cgi?id=734283 libxml2 reports wrong error column numbers (field int2 in xmlError) in structured error handler, after parsing an end tag.
This commit is contained in:
committed by
Daniel Veillard
parent
d319eb9223
commit
24fb4c329a
2
parser.c
2
parser.c
@@ -9719,9 +9719,11 @@ xmlParseEndTag2(xmlParserCtxtPtr ctxt, const xmlChar *prefix,
|
||||
if ((tlen > 0) && (xmlStrncmp(ctxt->input->cur, ctxt->name, tlen) == 0)) {
|
||||
if (ctxt->input->cur[tlen] == '>') {
|
||||
ctxt->input->cur += tlen + 1;
|
||||
ctxt->input->col += tlen + 1;
|
||||
goto done;
|
||||
}
|
||||
ctxt->input->cur += tlen;
|
||||
ctxt->input->col += tlen;
|
||||
name = (xmlChar*)1;
|
||||
} else {
|
||||
if (prefix == NULL)
|
||||
|
||||
Reference in New Issue
Block a user