Hi,
I checked kaserver with valgrind and have found that there were writes behind
the end of an allocated buffer. The attached patch fixes it.
Jan Hrabe confirmed that the patch fixed his problem.
--
Vladimir Nadvornik
developer
---------------------------------------------------------------------
SuSE CR, s.r.o. e-mail: [EMAIL PROTECTED]
Drahobejlova 27 tel:+420 2 9654 2373
190 00 Praha 9 fax:+420 2 9654 2374
Ceska republika http://www.suse.cz
--- src/lwp/lwp.c
+++ src/lwp/lwp.c
@@ -327,7 +327,7 @@
}
stackptr -= stacksize;
#else
- if ((stackptr = (char *) malloc(stacksize)) == NULL) {
+ if ((stackptr = (char *) malloc(stacksize + 8)) == NULL) {
Set_LWP_RC();
return LWP_ENOMEM;
}