diff options
author | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2009-04-23 12:47:54 +0500 |
---|---|---|
committer | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2009-04-23 12:47:54 +0500 |
commit | df997ddf3ccdf5a70352dbd087963c9c19cb7e5b (patch) | |
tree | c69662c774992bf1aa27ab5eb472b056994f97f7 /mysql-test/t/func_encrypt.test | |
parent | cfb4266f71c4e7c36f150ffa5c392f9ede33f350 (diff) | |
download | mariadb-git-df997ddf3ccdf5a70352dbd087963c9c19cb7e5b.tar.gz |
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()
Diffstat (limited to 'mysql-test/t/func_encrypt.test')
-rw-r--r-- | mysql-test/t/func_encrypt.test | 13 |
1 files changed, 13 insertions, 0 deletions
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; |