rem: datum = ns_malloc(size + 1);
add: datum = ns_malloc((size_t)(size + 1));
context: DbProxyGetList(Ns_DbHandle *dbhandle){    Ns_List             *destList;    int                  status = NS_OK;    int                  done = 0;    char                *datum;    DbProxyInputElement *el;    NsExtConn           *nsConn = dbhandle->connection;    int                  size;    char                 sizebuf[MAX_SIZEDIGITS]; /* holds ASCII representation                                                   * of datasize */    destList = NULL;    while (status == NS_OK && !done) {        if ((status = DbProxyGetString(dbhandle, sizebuf,				       MAX_SIZEDIGITS)) == NS_OK) {            if (!AllDigits(sizebuf)) {                Ns_Log(Error, "nsext: "		       "protocol error: number expected, got '%s'", sizebuf);                status = NS_ERROR;            } else if ((size = atoi(sizebuf)) > nsConn->ctx->maxElementSize) {                Ns_Log(Error, "nsext: "		       "exceeded element size limit of %d", size);                status = NS_ERROR;            } else if (size == END_LIST_VAL) {                done = 1;            } else {                datum = ns_malloc(size + 1);		/*		 * add NULL until nsdb does		 * binary data		 */		                if (size && DbProxyTimedIO(nsConn->socks[0], datum, size, 0,                        Read, nsConn->ctx->timeout, dbhandle, 1) != NS_OK) {		                        Ns_Log(Error, "nsext: "			   "read error: %s", strerror(errno));                    status = NS_ERROR;                } else {                    datum[size] = '\0';                    if (nsConn->ctx->ioTrace) {                        Ns_Log(Notice, "REC |%s|", datum);                    }                    el = ns_malloc(sizeof(DbProxyInputElement));                    el->size = size == 0 ? 0 : size + 1;                    el->data = datum;                    Ns_ListPush(el, destList);                }            }        }    }    if (status == NS_ERROR) {        Ns_ListFree(destList, (Ns_ElemVoidProc *) ExtFree);        destList = NULL;        DbProxyCleanup(dbhandle);    } else {        destList = Ns_ListNreverse(destList);    }        return destList;}