From 041123bade5372483d387a724d22a8f7e06d0645 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 6 Oct 2005 16:15:53 -0700 Subject: Handle errors returned by system crypt() in ENCRYPT(). (Bug #13619) mysql-test/r/func_crypt.result: Add new results mysql-test/t/func_crypt.test: Add new regression test sql/item_strfunc.cc: Handle NULL result from call to crypt(). --- mysql-test/t/func_crypt.test | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mysql-test/t/func_crypt.test') diff --git a/mysql-test/t/func_crypt.test b/mysql-test/t/func_crypt.test index 5e0283feb28..cc3cdb9564d 100644 --- a/mysql-test/t/func_crypt.test +++ b/mysql-test/t/func_crypt.test @@ -49,4 +49,10 @@ select old_password(' i d k f a '); explain extended select password('idkfa '), old_password('idkfa'); +# +# Bug #13619: Crash on FreeBSD with salt like '_.' +# +--replace_column 1 # +select encrypt('1234','_.'); + # End of 4.1 tests -- cgit v1.2.1