mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Bug#44365 valgrind warnings with encrypt() function
replaced String->c_ptr() with String->c_ptr_safe()
This commit is contained in:
@@ -183,3 +183,15 @@ id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
|
||||
Warnings:
|
||||
Note 1003 select des_decrypt(des_encrypt('hello',4),'password2') AS `des_decrypt(des_encrypt("hello",4),'password2')`,des_decrypt(des_encrypt('hello','hidden')) AS `des_decrypt(des_encrypt("hello","hidden"))`
|
||||
drop table if exists t1;
|
||||
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;
|
||||
a
|
||||
NULL
|
||||
re3VF.eOzS/lg
|
||||
NULL
|
||||
re3VF.eOzS/lg
|
||||
drop table t1;
|
||||
|
||||
Reference in New Issue
Block a user