1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

fixed a stupid out of bound array error Daniel

* xmlIO.c: fixed a stupid out of bound array error
Daniel
This commit is contained in:
Daniel Veillard 2002-09-10 12:16:19 +00:00
parent f4862f0f36
commit 607b35c570
3 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,14 @@
Tue Sep 10 14:15:18 CEST 2002 Daniel Veillard <daniel@veillard.com>
* xmlIO.c: fixed a stupid out of bound array error
Tue Sep 10 13:09:14 CEST 2002 Daniel Veillard <daniel@veillard.com>
* include/libxml/xmlIO.h xmlIO.c parser.c HTMLparser.c DOCBparser.c:
messing around with support for Windows path, cleanups,
trying to identify and fix the various code path to the
filename access. Added xmlNormalizeWindowsPath()
Thu Sep 5 16:19:18 CEST 2002 Daniel Veillard <daniel@veillard.com>
* error.c valid.c: working on better error reporting of validity

View File

@ -353,7 +353,6 @@ xmlParserValidityError(void *ctx, const char *msg, ...)
int len = xmlStrlen((const xmlChar *) msg);
static int had_info = 0;
int need_context = 0;
int need_info = 0;
if ((len > 1) && (msg[len - 2] != ':')) {
if (ctxt != NULL) {

View File

@ -157,8 +157,7 @@ xmlNormalizeWindowsPath(const xmlChar *path)
return(xmlStrdup(path));
len = xmlStrlen(path);
len += 10;
ret = xmlMalloc(len);
ret = xmlMalloc(len + 10);
if (ret == NULL)
return(NULL);