Skip site navigation (1) Skip section navigation (2)

cube output function can overrun its buffer

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: pgsql-bugs(at)postgresql(dot)org
Subject: cube output function can overrun its buffer
Date: 2002-08-18 15:01:09
Message-ID: 20020818150109.GA7982@wolff.to (view raw or flat)
Thread:
Lists: pgsql-bugs
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 to add specific precision specification
in case the default precision in glibc changes in the future.

Responses

pgsql-bugs by date

Next:From: Tom LaneDate: 2002-08-18 20:17:17
Subject: Re: cube output function can overrun its buffer
Previous:From: Peter EisentrautDate: 2002-08-18 11:20:17
Subject: Re: bug in config for cygwin

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group