1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-27964: Work around SIGSEGV in WITH_MSAN builds

We will move all tests of the ENCRYPT() function to the test
main.func_crypt, which will be disabled in MSAN builds for now.
This commit is contained in:
Marko Mäkelä
2022-02-28 18:31:59 +02:00
parent 08d39bdf22
commit bc020058d3
6 changed files with 44 additions and 42 deletions

View File

@ -1,4 +1,6 @@
-- source include/have_crypt.inc
# MDEV-27964 The function ENCRYPT() causes SIGSEGV in WITH_MSAN builds
-- source include/not_msan.inc
--disable_warnings
drop table if exists t1;
@ -51,6 +53,18 @@ select old_password(' i d k f a ');
explain extended select password('idkfa '), old_password('idkfa');
#
# using encrypt & substring_index in view (Bug#7024)
#
CREATE VIEW v1 AS SELECT ENCRYPT("dhgdhgd");
disable_result_log;
SELECT * FROM v1;
enable_result_log;
drop view v1;
CREATE VIEW v1 AS SELECT SUBSTRING_INDEX("dkjhgd:kjhdjh", ":", 1);
SELECT * FROM v1;
drop view v1;
#
# Bug #13619: Crash on FreeBSD with salt like '_.'
#
@ -69,6 +83,21 @@ INSERT INTO t1 VALUES (REPEAT('a', 1024));
SELECT OLD_PASSWORD(c1), PASSWORD(c1) FROM t1;
DROP TABLE t1;
#
# Bug#44365 valgrind warnings with encrypt() function
#
--disable_warnings
drop table if exists t1;
--enable_warnings
create table t1 (f1 smallint(6) default null, f2 mediumtext character set utf8)
engine=myisam default charset=latin1;
insert into t1 values (null,'contraction\'s');
insert into t1 values (-15818,'requirement\'s');
--disable_result_log
select encrypt(f1,f2) as a from t1,(select encrypt(f1,f2) as b from t1) a;
--enable_result_log
drop table t1;
--echo # End of 5.0 tests
--echo #
--echo # Start of 10.0 tests