mariadb/tests
Dmitry Shulga 6c2f5e306c Fixed Bug#11764168 "56976: SEVERE DENIAL OF SERVICE IN PREPARED STATEMENTS".
The problem was that server didn't check resulting size of prepared
statement argument which was set using mysql_send_long_data() API.
By calling mysql_send_long_data() several times it was possible
to create overly big string and thus force server to allocate
memory for it. There was no way to limit this allocation.

The solution is to add check for size of result string against
value of max_long_data_size start-up parameter. When intermediate
string exceeds max_long_data_size value an appropriate error message
is emitted.

We can't use existing max_allowed_packet parameter for this purpose
since its value is limited by 1GB and therefore using it as a limit
for data set through mysql_send_long_data() API would have been an
incompatible change. Newly introduced max_long_data_size parameter
gets value from max_allowed_packet parameter unless its value is
specified explicitly. This new parameter is marked as deprecated
and will be eventually replaced by max_allowed_packet parameter.
Value of max_long_data_size parameter can be set only at server
startup.
2011-03-15 17:36:12 +06:00
..
.cvsignore
auto_increment.res
auto_increment.tst
big_record.pl - Added/updated copyright headers 2010-12-28 19:57:23 +01:00
bug25714.c
CMakeLists.txt
connect_test.c
deadlock_test.c
drop_test.pl - Added/updated copyright headers 2010-12-28 19:57:23 +01:00
export.pl - Added/updated copyright headers 2010-12-28 19:57:23 +01:00
fork2_test.pl - Added/updated copyright headers 2010-12-28 19:57:23 +01:00
fork_big.pl Merge 2010-12-29 00:47:05 +01:00
fork_big2.pl Merge 2010-12-29 00:47:05 +01:00
function.res
function.tst
grant.pl - Added/updated copyright headers 2010-12-28 19:57:23 +01:00
grant.res
index_corrupt.pl - Added/updated copyright headers 2010-12-28 19:57:23 +01:00
insert_and_repair.pl - Added/updated copyright headers 2010-12-28 19:57:23 +01:00
insert_test.c
list_test.c
lock_test.pl - Added/updated copyright headers 2010-12-28 19:57:23 +01:00
lock_test.res
mail_to_db.pl
Makefile.am Merge 2010-12-29 00:47:05 +01:00
myisam-big-rows.tst
mysql_client_test.c Fixed Bug#11764168 "56976: SEVERE DENIAL OF SERVICE IN PREPARED STATEMENTS". 2011-03-15 17:36:12 +06:00
pmail.pl - Added/updated copyright headers 2010-12-28 19:57:23 +01:00
rename_test.pl - Added/updated copyright headers 2010-12-28 19:57:23 +01:00
restore-lock.smack
select_test.c
showdb_test.c
ssl_test.c
table_types.pl - Added/updated copyright headers 2010-12-28 19:57:23 +01:00
test_delayed_insert.pl - Added/updated copyright headers 2010-12-28 19:57:23 +01:00
thread_test.c
truncate.pl - Added/updated copyright headers 2010-12-28 19:57:23 +01:00