File xstrdup_buffer_overflow.patch of Package nc6
--- src/misc.c +++ src/misc.c @@ -119,7 +119,7 @@ char *xstrdup(const char *str) { - register char *nstr = (char *)xmalloc(strlen(str)); + register char *nstr = (char *)xmalloc(strlen(str)+1); /* we should use srtlcpy here instead of strcpy */ strcpy(nstr, str); return nstr;