Neil Conway <neilc(at)samurai(dot)com> writes:> + /* Check for integer overflow */> + if (tlen / slen != count)> + elog(ERROR, "Requested buffer is too large.");
What about slen == 0?
regards, tom lane