[leafnode-list] texpire keeps segfaulting
Matthias Andree
matthias.andree at gmx.de
Sat Jun 5 13:44:50 CEST 2004
> valgrind is currently only available on Linux x86, although ports to
> other systems and machines are underway.
Following up myself, José's message with the valgrind trace was held for
moderation because it exceeded the message size limit for the list.
I have forwarded the trapped message to myself and there may be a
fencepost error. I have suggested the patch I give below to José and am
awaiting his feedback.
So if you have crashes that don't quite make sense, please try this
patch and let me know if it helps:
diff -u -p -r1.54 miscutil.c
--- miscutil.c 13 May 2004 14:32:30 -0000 1.54
+++ miscutil.c 5 Jun 2004 11:38:30 -0000
@@ -442,10 +442,13 @@ chdirgroup(const char *group, int creatd
while (*p) {
if (*p == '.') {
*p = '/';
- dots++;
} else
*p = tolower((unsigned char)*p);
p++;
+ }
+ for (c = mastr_str(d);*c;c++) {
+ if (*c == '/' && c[1] && strspn(c+1, "0123456789") == strcspn(c+1, "/"))
+ dots++;
}
nam = critmalloc(mastr_len(d) + dots + 1, "chdirgroup");
for (c = mastr_str(d), q=nam;*c;c++) {
--
Matthias Andree
Encrypted mail welcome: my GnuPG key ID is 0x052E7D95
More information about the leafnode-list
mailing list