latest from cvs: NULL-deref upon realloc failure

2009-05-20 Thread Jim Meyering
Most allocation functions (realloc, malloc, calloc) are checked for NULL return values, but a few are not: ./poptconfig.c: b = realloc(b, (nb + nse)); ./poptconfig.c- (void) stpcpy( stpcpy(&b[nb-1], " "), se); ./popt.c: t = realloc(t, tn); ./popt.c- te = stpcpy

latest from cvs: NULL-deref upon realloc failure

2009-05-20 Thread Jim Meyering
Most heap allocation functions are checked for NULL return values, but a few are not: ./poptconfig.c: b = realloc(b, (nb + nse)); ./poptconfig.c- (void) stpcpy( stpcpy(&b[nb-1], " "), se); ./popt.c: t = realloc(t, tn); ./popt.c- te = stpcpy(t + pos, a); If eit