diff options
author | Jon Olav Hauglid <jon.hauglid@oracle.com> | 2015-01-22 14:19:56 +0100 |
---|---|---|
committer | Jon Olav Hauglid <jon.hauglid@oracle.com> | 2015-01-23 10:17:09 +0100 |
commit | 7a408dbdf40930144c1bad654cb1e31e5ce5fc7a (patch) | |
tree | 154611a8df35f2325180540e15a5022e631ea870 /sql/sql_class.cc | |
parent | 70f5d81a96ba38d690e907f5fd56760b9ee87803 (diff) | |
download | mariadb-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.cc')
0 files changed, 0 insertions, 0 deletions