adding "make valgrind" running the full regression tests (except python
* Makefile.am: adding "make valgrind" running the full regression
tests (except python ones) under Valgrind (using valgrind -q
which was kindly added by the author).
* valid.c: stupid bug pinpointed by Valgrind, the regression tests
passes cleanly now except an obcure floating point initialization
raised in log10() in one XPath regression test ???
* tree.c: edited some comments to close #75244
Daniel
diff --git a/valid.c b/valid.c
index 9133a30..36f2bec 100644
--- a/valid.c
+++ b/valid.c
@@ -609,14 +609,14 @@
break;
case XML_ELEMENT_CONTENT_ELEMENT:
if (content->prefix != NULL) {
- if (size - len < xmlStrlen(content->prefix + 10)) {
+ if (size - len < xmlStrlen(content->prefix) + 10) {
strcat(buf, " ...");
return;
}
strcat(buf, (char *) content->prefix);
strcat(buf, ":");
}
- if (size - len < xmlStrlen(content->name + 10)) {
+ if (size - len < xmlStrlen(content->name) + 10) {
strcat(buf, " ...");
return;
}
@@ -3935,7 +3935,7 @@
switch (cur->type) {
case XML_ELEMENT_NODE:
if ((cur->ns != NULL) && (cur->ns->prefix != NULL)) {
- if (size - len < xmlStrlen(cur->ns->prefix + 10)) {
+ if (size - len < xmlStrlen(cur->ns->prefix) + 10) {
if ((size - len > 4) && (buf[len - 1] != '.'))
strcat(buf, " ...");
return;
@@ -3943,7 +3943,7 @@
strcat(buf, (char *) cur->ns->prefix);
strcat(buf, ":");
}
- if (size - len < xmlStrlen(cur->name + 10)) {
+ if (size - len < xmlStrlen(cur->name) + 10) {
if ((size - len > 4) && (buf[len - 1] != '.'))
strcat(buf, " ...");
return;