GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit e502041f authored by Daniel Veillard's avatar Daniel Veillard

fixed an uninitialized memory access pointed by valgrind on C14Ntests

* SAX.c: fixed an uninitialized memory access pointed by valgrind
  on C14Ntests
Daniel
parent 7fe1f3a5
Tue Apr 1 11:52:15 CEST 2003 Daniel Veillard <daniel@veillard.com>
* SAX.c: fixed an uninitialized memory access pointed by valgrind
on C14Ntests
Tue Apr 1 00:12:28 CEST 2003 Daniel Veillard <daniel@veillard.com>
* relaxng.c: one more fixup of error message reporting
......
......@@ -247,8 +247,10 @@ externalSubset(void *ctx, const xmlChar *name,
/*
* On the fly encoding conversion if needed
*/
enc = xmlDetectCharEncoding(ctxt->input->cur, 4);
xmlSwitchEncoding(ctxt, enc);
if (ctxt->input->length >= 4) {
enc = xmlDetectCharEncoding(ctxt->input->cur, 4);
xmlSwitchEncoding(ctxt, enc);
}
if (input->filename == NULL)
input->filename = (char *) xmlStrdup(SystemID);
......
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