mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-7772: SIGSEGV on my_aes_encrypt_cbc when -DWITH_SSL=bundled
Two problems: - Read/Write outside of buffer at memcpy() because of incorrect parameters . OPENSSL_assert(EVP_CIPHER_CTX_iv_length(&ctx.ctx) == iv_length); // ECB does not use IV, thus incorrect assertion Added: mysql-test/include/encryption_algorithms.combinations to run tests with methods cbc, ecb and ctr in those systems where they are available (see suite.pm).
This commit is contained in:
8
mysql-test/include/encryption_algorithms.combinations
Normal file
8
mysql-test/include/encryption_algorithms.combinations
Normal file
@@ -0,0 +1,8 @@
|
||||
[cbc]
|
||||
encryption-algorithm=aes_cbc
|
||||
|
||||
[ecb]
|
||||
encryption-algorithm=aes_ecb
|
||||
|
||||
[ctr]
|
||||
encryption-algorithm=aes_ctr
|
@@ -1,3 +1,5 @@
|
||||
-- source encryption_algorithms.inc
|
||||
|
||||
if (`select count(*) = 0 from information_schema.plugins
|
||||
where plugin_name = 'example_key_management_plugin' and plugin_status='active'`)
|
||||
{
|
||||
|
@@ -1,3 +1,5 @@
|
||||
-- source encryption_algorithms.inc
|
||||
|
||||
if (`select count(*) = 0 from information_schema.plugins
|
||||
where plugin_name = 'file_key_management_plugin' and plugin_status='active'`)
|
||||
{
|
||||
|
@@ -1,4 +1,4 @@
|
||||
--plugin-load-add=$FILE_KEY_MANAGEMENT_PLUGIN_SO
|
||||
--loose-file-key-management-plugin
|
||||
--loose-file-key-management-plugin-filename=$MYSQL_TEST_DIR/std_data/keys.txt
|
||||
--encryption-algorithm=aes_cbc
|
||||
|
||||
|
@@ -1 +0,0 @@
|
||||
--encryption-algorithm=aes_ctr
|
Reference in New Issue
Block a user