1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

fix the error message for invalid code point in content c.f. bug #339311

* parser.c: fix the error message for invalid code point in content
  c.f. bug #339311
Daniel
This commit is contained in:
Daniel Veillard
2006-04-24 08:50:10 +00:00
parent b63d2fab2d
commit 3b1478b7e8
2 changed files with 12 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
Mon Apr 24 10:50:19 CEST 2006 Daniel Veillard <daniel@veillard.com>
* parser.c: fix the error message for invalid code point in content
c.f. bug #339311
Wed Apr 19 13:16:23 CEST 2006 Kasimier Buchcik <libxml2-cvs@cazic.net>
* xmlschemas.c test/schemas/restriction-enum-1*

View File

@@ -3661,6 +3661,13 @@ xmlParseCharDataComplex(xmlParserCtxtPtr ctxt, int cdata) {
}
}
}
if ((cur != 0) && (!IS_CHAR(cur))) {
/* Generate the error and skip the offending character */
xmlFatalErrMsgInt(ctxt, XML_ERR_INVALID_CHAR,
"PCDATA invalid Char value %d\n",
cur);
NEXTL(l);
}
}
/**