MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Georgi Kodinov Date:August 19 2009 2:53pm
Subject:bzr commit into mysql-5.0-bugteam branch (joro:2790) Bug#46807
View as plain text  
#At file:///Users/kgeorge/mysql/work/B46807-5.0-bugteam/ based on revid:joro@stripped

 2790 Georgi Kodinov	2009-08-19
      Bug #46807: subselect test fails on PB-2 with a crash
      The check for stack overflow was independent of the size of the 
      structure stored in the heap. 
      Fixed by adding sizeof(PARAM) to the requested free heap size.

=== modified file 'sql/'
--- a/sql/	2009-07-16 12:37:38 +0000
+++ b/sql/	2009-08-19 14:53:43 +0000
@@ -2063,7 +2063,7 @@ int SQL_SELECT::test_quick_select(THD *t
     KEY *key_info;
     PARAM param;
-    if (check_stack_overrun(thd, 2*STACK_MIN_SIZE, buff))
+    if (check_stack_overrun(thd, 2*STACK_MIN_SIZE + sizeof(PARAM), buff))
       DBUG_RETURN(0);                           // Fatal error flag is set
     /* set up parameter that is passed to all functions */

Attachment: [text/bzr-bundle] bzr/
bzr commit into mysql-5.0-bugteam branch (joro:2790) Bug#46807Georgi Kodinov19 Aug