Commit cffc1c7a authored by Daniel Veillard's avatar Daniel Veillard
Browse files

removed a static buffer in xmlByteConsumed(), as pointed by Ben Maurer,

* encoding.c: removed a static buffer in xmlByteConsumed(),
  as pointed by Ben Maurer, fixes #170086
* xmlschemas.c: remove a potentially uninitialized pointer warning
Daniel
parent 273670f4
Sat Mar 12 19:50:22 CET 2005 Daniel Veillard <daniel@veillard.com>
* encoding.c: removed a static buffer in xmlByteConsumed(),
as pointed by Ben Maurer, fixes #170086
* xmlschemas.c: remove a potentially uninitialized pointer warning
Fri Mar 11 23:53:13 HKT 2005 William Brack <wbrack@mmm.com.hk>
 
* xmlschemastypes.c: enhanced the parsing of XML_SCHEMAS_DECIMAL
......
......@@ -2146,7 +2146,7 @@ xmlByteConsumed(xmlParserCtxtPtr ctxt) {
* the raw consumed value, this is not a cheap operation
*/
if (in->end - in->cur > 0) {
static unsigned char convbuf[32000];
unsigned char convbuf[32000];
const unsigned char *cur = (const unsigned char *)in->cur;
int toconv = in->end - in->cur, written = 32000;
......
......@@ -8240,7 +8240,7 @@ xmlSchemaParseInclude(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema,
const xmlChar *schemaLocation, *targetNamespace;
xmlDocPtr doc = NULL;
xmlNodePtr root = NULL;
xmlSchemaIncludePtr include;
xmlSchemaIncludePtr include = NULL;
int wasConvertingNs = 0;
xmlAttrPtr attr;
xmlParserCtxtPtr parserCtxt;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment