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
This commit is contained in:
Daniel Veillard 2005-03-12 18:54:55 +00:00
parent 273670f435
commit cffc1c7af1
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -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;

View File

@ -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;