mariadb/storage
Arun Kuruvila 1177d3402d Bug #18463911 : SERVER CRASHES ON CREATING A TEMP TABLE
WITH CERTAIN MAX_HEAP_TABLE_SIZE VALUES

Description:
When the  system variable 'max_heap_table_size'
is set to 20GB, the server crashes on creation of a
temporary tables or tables using MEMORY storage engine.

Analysis:
The variable 'max_record' determines the amount heap
allocated for the records of the table. This value
is determined using the 'max_heap_table_size' variable.
'records_in_block' in turn uses the max_records to
determine the number of records per block.

When the 'max_heap_table_size' is set to 20GB, then
the 'records_in_block' is calculated to a value of
2^28.

The size of the block determined by multiplying the
'records_in_block' and 'recbuffer' results in overflow
and hence the value becomes zero. As a result, zero bytes
of the heap is allocated for the table. This will
result in a server crash when the table is accessed.

Fix:
The variables 'records_in_block' and 'recbuffer' are
typecasted to 'unsigned long' while calculating the
size of the block.
2014-06-25 11:42:41 +05:30
..
archive Description: When we execute a correlated subquery on an 2014-04-10 11:10:31 +05:30
blackhole Merge 5.5.24 back into main 5.5. 2012-05-07 22:20:42 +02:00
csv Updated/added copyright headers 2012-02-16 10:48:16 +01:00
example Updated/added copyright headers 2014-01-06 10:52:35 +05:30
federated Bug #16324629 : SERVER CRASHES ON UPDATE/JOIN FEDERATED + 2013-12-30 11:39:55 +05:30
heap Bug #18463911 : SERVER CRASHES ON CREATING A TEMP TABLE 2014-06-25 11:42:41 +05:30
innobase Bug#18776592 INNODB: FAILING ASSERTION: PRIMARY_KEY_NO == -1 || 2014-06-25 09:50:17 +05:30
myisam Bug #18045646 LOCAL USER CAN RUN ARBITRARY CODE IN THE CONTEXT OF THE MYSQL SERVER 2014-05-08 14:41:01 +05:30
myisammrg Updated/added copyright header. Added line "use is subject to license terms" 2014-02-17 18:19:04 +05:30
ndb Updated/added copyright header. Added line "use is subject to license terms" 2014-02-17 18:19:04 +05:30
perfschema Updated/added copyright header. Added line "use is subject to license terms" 2014-02-17 18:19:04 +05:30