mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	The problem was overflow in max_length when we tried to des_decrypt() something which is not the output of des_encrypt()
		
			
				
	
	
		
			9 lines
		
	
	
		
			183 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			183 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| CREATE TABLE t1(a int) engine=innodb;
 | |
| INSERT INTO t1 VALUES (1);
 | |
| SELECT DISTINCT
 | |
| convert((SELECT des_decrypt(2,1) AS a FROM t1 WHERE @a:=1), signed) as d
 | |
| FROM t1 ;
 | |
| d
 | |
| 2
 | |
| DROP TABLE t1;
 |