Re: BUG #1718: geqo_selection.c:linear()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Bug Finder" <bug(at)zedware(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1718: geqo_selection.c:linear()
Date: 2005-06-14 14:23:24
Message-ID: 28342.1118759004@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Bug Finder" <bug(at)zedware(dot)org> writes:
> In geqo_selection.c, function linear() may
> return a value equals to pool_size, and cause
> geqo_selection() to visit invalid array member.

Good catch. I wonder whether roundoff error couldn't lead to trying to
call sqrt() with a value slightly less than zero, too. Repaired in our
CVS for next releases --- thanks for the report!

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Brandon Keepers 2005-06-14 17:35:54 pg_dump silently fails
Previous Message Kevin Grittner 2005-06-14 14:20:25 Re: BUG #1712: JDBC column precision for bigint is 0