diff options
author | Juergen Keil <jrgn.keil@googlemail.com> | 2014-10-06 18:19:12 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2014-10-06 18:19:12 +0800 |
commit | 24fb4c329a9b8e142e9d388901a1c59a07f94ed5 (patch) | |
tree | 1dd98bdb2ef4a6f33382059c56ef4f1eb5a71162 /parser.c | |
parent | d319eb922358754f0601ddde97e8f09449477d00 (diff) | |
download | android_external_libxml2-24fb4c329a9b8e142e9d388901a1c59a07f94ed5.tar.gz android_external_libxml2-24fb4c329a9b8e142e9d388901a1c59a07f94ed5.tar.bz2 android_external_libxml2-24fb4c329a9b8e142e9d388901a1c59a07f94ed5.zip |
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.
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |