dbTalk Databases Forums  

[BUGS] BUG #1718: geqo_selection.c:linear()

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1718: geqo_selection.c:linear() in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bug Finder
 
Posts: n/a

Default [BUGS] BUG #1718: geqo_selection.c:linear() - 06-14-2005 , 07:16 AM







The following bug has been logged online:

Bug reference: 1718
Logged by: Bug Finder
Email address: bug (AT) zedware (DOT) org
PostgreSQL version: 8.0.3
Operating system: Linux
Description: geqo_selection.c:linear()
Details:

In geqo_selection.c, function linear() may
return a value equals to pool_size, and cause
geqo_selection() to visit invalid array member.

In linear(), assume bias is 2, and geqo_rand()
returns 1. Then index will equal to pool_size.

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #1718: geqo_selection.c:linear() - 06-14-2005 , 09:25 AM






"Bug Finder" <bug (AT) zedware (DOT) org> writes:
Quote:
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

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.