mariadb/tests
Lawrin Novitsky 4b854d4795 MDEV-19838 Wrong direxec param data caused crash
In case of direct execution(stmtid=-1, mariadb_stmt_execute_direct in C
API) application is in control of how many parameters client sends to
the server. In case this number is not equal to actual query parameters
number, the server may start to interprete packet data incorrectly, e.g.
starting from the size of null bitmap. And that could cause it to crash
at some point. The commit introduces some additional COM_STMT_EXECUTE
packet sanity checks:
- checking that "types sent" byte is set, and the value is equal to 1.
  if it's not direct execution, then that value is 0 or 1.
- checking that parameter type value is a valid type, and parameter
  flags value is 0 or only "unsigned" bit is set
- added more checks that read does not go beyond the end of the packet
2020-10-29 08:04:32 +01:00
..
async_queries.c
auto_increment.res
auto_increment.tst
big_record.pl mtr: use env for perl 2020-06-23 03:24:46 +02:00
bug25714.c
check_async_queries.pl
CMakeLists.txt
connect_test.c
consistent_snapshot.pl
deadlock_test.c
drop_test.pl MDEV-23697: perl -w -> perl 2020-09-24 08:09:56 +10:00
export.pl mtr: use env for perl 2020-06-23 03:24:46 +02:00
fork2_test.pl MDEV-23697: perl -w -> perl 2020-09-24 08:09:56 +10:00
fork_big.pl MDEV-23697: perl -w -> perl 2020-09-24 08:09:56 +10:00
fork_big2.pl MDEV-23697: perl -w -> perl 2020-09-24 08:09:56 +10:00
function.res
function.tst
grant.pl mtr: use env for perl 2020-06-23 03:24:46 +02:00
grant.res
index_corrupt.pl MDEV-23697: perl -w -> perl 2020-09-24 08:09:56 +10:00
insert_and_repair.pl MDEV-23697: perl -w -> perl 2020-09-24 08:09:56 +10:00
insert_test.c
list_test.c
lock_test.pl mtr: use env for perl 2020-06-23 03:24:46 +02:00
lock_test.res
mail_to_db.pl MDEV-23697: perl -w -> perl 2020-09-24 08:09:56 +10:00
myisam-big-rows.tst
mysql_client_fw.c
mysql_client_test.c MDEV-19838 Wrong direxec param data caused crash 2020-10-29 08:04:32 +01:00
nonblock-wrappers.h
pmail.pl MDEV-23697: perl -w -> perl 2020-09-24 08:09:56 +10:00
rename_test.pl MDEV-23697: perl -w -> perl 2020-09-24 08:09:56 +10:00
restore-lock.smack
select_test.c
showdb_test.c
ssl_test.c
table_types.pl mtr: use env for perl 2020-06-23 03:24:46 +02:00
test_delayed_insert.pl MDEV-23697: perl -w -> perl 2020-09-24 08:09:56 +10:00
thread_test.c
truncate.pl MDEV-23697: perl -w -> perl 2020-09-24 08:09:56 +10:00