From df997ddf3ccdf5a70352dbd087963c9c19cb7e5b Mon Sep 17 00:00:00 2001 From: Sergey Glukhov Date: Thu, 23 Apr 2009 12:47:54 +0500 Subject: Bug#44365 valgrind warnings with encrypt() function replaced String->c_ptr() with String->c_ptr_safe() mysql-test/r/func_encrypt.result: test result mysql-test/t/func_encrypt.test: test case sql/item_strfunc.cc: replaced String->c_ptr() with String->c_ptr_safe() --- mysql-test/t/func_encrypt.test | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'mysql-test/t/func_encrypt.test') diff --git a/mysql-test/t/func_encrypt.test b/mysql-test/t/func_encrypt.test index bcf1e5a77f4..31cfae2be1d 100644 --- a/mysql-test/t/func_encrypt.test +++ b/mysql-test/t/func_encrypt.test @@ -88,3 +88,16 @@ select hex(des_decrypt(des_encrypt("hello","hidden"))); explain extended select des_decrypt(des_encrypt("hello",4),'password2'), des_decrypt(des_encrypt("hello","hidden")); # End of 4.1 tests + +# +# 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'); +select encrypt(f1,f2) as a from t1,(select encrypt(f1,f2) as b from t1) a; +drop table t1; -- cgit v1.2.1