Bug#229333: discover2-udeb: segfault
tags 229333 + patch
thanks
This patch fixes the problem. Someone forgot to make room for the
zero-terminator in the string.
--- lib/core.c.orig 2004-01-24 11:22:05.000000000 +0000
+++ lib/core.c 2004-01-24 11:22:07.000000000 +0000
@@ -84,7 +84,7 @@
if((*status)->message) {
free((*status)->message);
}
- (*status)->message = _discover_xmalloc(strlen(message));
+ (*status)->message = _discover_xmalloc(strlen(message)+1);
strcpy((*status)->message, message);
}
Reply to: