mariadb/mysql-test/suite/innodb/r/dropdb.result
Marko Mäkelä 14521992b0 MDEV-27336 Crash on DROP DATABASE due to out-of-bounds result from InnoDB SUBSTR()
eval_substr(): Do not allow the string buffer of the first argument
to be extended. Trim the length of the returned result if it would
exceed the end of the buffer.
2021-12-21 17:33:26 +02:00

22 lines
715 B
Text

SET NAMES utf8;
call mtr.add_suppression("Invalid .old.. table or database name");
#
# Bug #19929435 DROP DATABASE HANGS WITH MALFORMED TABLE
#
set session default_storage_engine=innodb;
create database `b`;
use `b`;
create table `#mysql50#q.q` select 1;
ERROR 42000: Incorrect table name '#mysql50#q.q'
create table `#mysql50#q·q` select 1;
drop database `b`;
#
# MDEV-27336 Crash on DROP DATABASE due to out-of-bounds result
# from InnoDB SUBSTR() function
#
USE test;
CREATE TABLE t1(a INT PRIMARY KEY) ENGINE=InnoDB;
CREATE TABLE t2(a INT PRIMARY KEY REFERENCES t1(a)) ENGINE=InnoDB;
CREATE DATABASE somewhat_longer_name_to_cause_trouble;
DROP DATABASE somewhat_longer_name_to_cause_trouble;
DROP TABLE t2,t1;