[MDEV-8281] aes_decrypt crashes in block_crypt()! Created: 2015-06-07  Updated: 2015-06-27  Resolved: 2015-06-19

Status: Closed
Project: MariaDB Server
Component/s: Encryption
Affects Version/s: 10.1.5
Fix Version/s: 10.1.6

Type: Bug Priority: Major
Reporter: sbester1 Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None
Environment:

Win x64


Sprint: 10.1.6-1

 Description   

Version: '10.1.5-MariaDB'  mariadb.org binary distribution
mysqld.exe!block_crypt()[my_crypt.cc:107]
mysqld.exe!my_aes_decrypt_ecb()[my_crypt.cc:314]
mysqld.exe!Item_aes_crypt::val_str()[item_strfunc.cc:406]
mysqld.exe!Item_str_func::val_int()[item_strfunc.cc:148]
mysqld.exe!mysql_do()[sql_do.cc:35]
mysqld.exe!mysql_execute_command()[sql_parse.cc:2967]
mysqld.exe!mysql_parse()[sql_parse.cc:7178]
mysqld.exe!dispatch_command()[sql_parse.cc:1473]
mysqld.exe!do_command()[sql_parse.cc:1093]
mysqld.exe!threadpool_process_request()[threadpool_common.cc:233]
mysqld.exe!io_completion_callback()[threadpool_win.cc:568]

How To Repeat:
---------------------
Started server with mysqld.exe --no-defaults --skip-name-resolve --console

do aes_decrypt("",1)



 Comments   
Comment by Elena Stepanova [ 2015-06-08 ]

Thanks for the report.

Apparently, it only crashes when built with the bundled SSL.

The problem was introduced with the following revision:

commit b937574293ee731dc7b5c949d27fede1f5d17db5
Author: Sergei Golubchik <serg@mariadb.org>
Date:   Wed Mar 25 19:36:10 2015 +0100
 
    remove old my_aes_encrypt/decrypt
    
    and simplify Item_func_aes_encrypt/decrypt
 

Generated at Thu Feb 08 07:25:58 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.