mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 19:06:14 +01:00 
			
		
		
		
	 a6780df49b
			
		
	
	
	a6780df49b
	
	
	
		
			
			Let us make innodb_buffer_pool_filename a read-only variable so that a malicious user cannot cause an important file to be deleted on InnoDB shutdown. An attempt to delete a directory will fail because it is not a regular file, but what if the variable pointed to (say) ibdata1, ib_logfile0 or some *.ibd file? It does not seem to make much sense for this parameter to be configurable in the first place, but we will not change that in order to avoid breaking compatibility.
		
			
				
	
	
		
			52 lines
		
	
	
	
		
			1.8 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
	
		
			1.8 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| #
 | |
| # Bug #29717909	MEMORY LIFETIME OF VARIABLES BETWEEN CHECK AND UPDATE INCORRECTLY MANAGED
 | |
| #
 | |
| select @@innodb_ft_server_stopword_table;
 | |
| @@innodb_ft_server_stopword_table
 | |
| NULL
 | |
| create table user_stopword_1(value varchar(30)) engine = innodb;
 | |
| create table user_stopword_2(value varchar(30)) engine = innodb;
 | |
| set @blah = 'test/user_stopword_1';
 | |
| SET GLOBAL innodb_ft_server_stopword_table= @blah;
 | |
| select @@innodb_ft_server_stopword_table;
 | |
| @@innodb_ft_server_stopword_table
 | |
| test/user_stopword_1
 | |
| set @blah = 'test/user_stopword_2';
 | |
| SET GLOBAL innodb_ft_server_stopword_table= @blah;
 | |
| select @@innodb_ft_server_stopword_table;
 | |
| @@innodb_ft_server_stopword_table
 | |
| test/user_stopword_2
 | |
| SET GLOBAL innodb_ft_server_stopword_table= NULL;
 | |
| select @@innodb_ft_server_stopword_table;
 | |
| @@innodb_ft_server_stopword_table
 | |
| NULL
 | |
| SET GLOBAL innodb_ft_server_stopword_table= default;
 | |
| select @@innodb_ft_server_stopword_table;
 | |
| @@innodb_ft_server_stopword_table
 | |
| NULL
 | |
| drop table user_stopword_1, user_stopword_2;
 | |
| CREATE TABLE t1 ( id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
 | |
| opening_line TEXT(500), author VARCHAR(200), title VARCHAR(200), FULLTEXT idx
 | |
| (opening_line)) ENGINE=InnoDB;
 | |
| CREATE TABLE t2 ( id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
 | |
| opening_line TEXT(500), author VARCHAR(200), title VARCHAR(200), FULLTEXT idx
 | |
| (opening_line)) ENGINE=InnoDB;
 | |
| select @@innodb_ft_aux_table;
 | |
| @@innodb_ft_aux_table
 | |
| NULL
 | |
| set @blah = 'test/t1';
 | |
| SET GLOBAL innodb_ft_aux_table = @blah;
 | |
| select @@innodb_ft_aux_table;
 | |
| @@innodb_ft_aux_table
 | |
| test/t1
 | |
| set @blah = 'test/t2';
 | |
| SET GLOBAL innodb_ft_aux_table = @blah;
 | |
| SET GLOBAL innodb_ft_aux_table = NULL;
 | |
| select @@innodb_ft_aux_table;
 | |
| @@innodb_ft_aux_table
 | |
| NULL
 | |
| SET GLOBAL innodb_ft_aux_table =default;
 | |
| select @@innodb_ft_aux_table;
 | |
| @@innodb_ft_aux_table
 | |
| NULL
 | |
| drop table t1,t2;
 |