summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorJon Olav Hauglid <jon.hauglid@oracle.com>2015-01-22 14:19:56 +0100
committerJon Olav Hauglid <jon.hauglid@oracle.com>2015-01-23 10:17:09 +0100
commit7a408dbdf40930144c1bad654cb1e31e5ce5fc7a (patch)
tree154611a8df35f2325180540e15a5022e631ea870 /sql/sql_class.h
parent70f5d81a96ba38d690e907f5fd56760b9ee87803 (diff)
downloadmariadb-git-7a408dbdf40930144c1bad654cb1e31e5ce5fc7a.tar.gz
Bug#19770858: MYSQLD CAN BE DRIVEN TO OOM WITH TWO SIMPLE SESSION VARS
The problem was that the maximum value of the transaction_prealloc_size session system variable was ULONG_MAX which meant that it was possible to cause the server to allocate excessive amounts of memory. This patch fixes the problem by reducing the maxmimum value of transaction_prealloc_size and transaction_alloc_block_size down to 128K. Note that transactions will still be able to allocate more than 128K if needed, this patch just reduces the amount that can be preallocated - as well as the maximum size of the incremental allocation blocks.
Diffstat (limited to 'sql/sql_class.h')
0 files changed, 0 insertions, 0 deletions