Re: [BUGS] cube output function can overrun its buffer

2002-08-18 Thread Tom Lane
Bruno Wolff III <[EMAIL PROTECTED]> writes: > In cube_out 100 bytes are allocated to hold the output string. Good point. > Instead > using a bound on the size of g format output and separation characters, > this bound times twice the dimension (possibly plus a small constant for > parens and ter

[BUGS] cube output function can overrun its buffer

2002-08-18 Thread Bruno Wolff III
In cube_out 100 bytes are allocated to hold the output string. Instead using a bound on the size of g format output and separation characters, this bound times twice the dimension (possibly plus a small constant for parens and terminating 0 byte) should be used. With this approach you might want