diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-10-23 15:59:51 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-10-23 15:59:51 +0200 |
commit | 98f15dac60749ea6957147da9fb423d7dcc6fb05 (patch) | |
tree | c514403de8c93cc8244df7aaca931c3ebfa9e67c /mysql-test/suite/heap | |
parent | f9e5195b40b4b6678b71fdac2b99442664037d36 (diff) | |
download | mariadb-git-98f15dac60749ea6957147da9fb423d7dcc6fb05.tar.gz |
Bug#27799513: POTENTIAL DOUBLE FREE OR CORRUPTION OF HEAP INFO (HP_INFO)
test case
Diffstat (limited to 'mysql-test/suite/heap')
-rw-r--r-- | mysql-test/suite/heap/heap_btree.result | 4 | ||||
-rw-r--r-- | mysql-test/suite/heap/heap_btree.test | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/suite/heap/heap_btree.result b/mysql-test/suite/heap/heap_btree.result index 12a011778c6..83d1bcb6c92 100644 --- a/mysql-test/suite/heap/heap_btree.result +++ b/mysql-test/suite/heap/heap_btree.result @@ -379,3 +379,7 @@ id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE t1 range uniq_id uniq_id 8 NULL 4 Using where drop table t1; End of 5.3 tests +create table t1 (id int, a varchar(300) not null, key using btree(a)) engine=heap; +insert t1 values (1, repeat('a', 300)); +drop table t1; +End of 5.5 tests diff --git a/mysql-test/suite/heap/heap_btree.test b/mysql-test/suite/heap/heap_btree.test index 02c09f52263..aca41c430b3 100644 --- a/mysql-test/suite/heap/heap_btree.test +++ b/mysql-test/suite/heap/heap_btree.test @@ -279,3 +279,12 @@ explain select 0+a from t1 where a in (869751,736494,226312,802616); drop table t1; --echo End of 5.3 tests + +# +# Bug#27799513: POTENTIAL DOUBLE FREE OR CORRUPTION OF HEAP INFO (HP_INFO) +# +create table t1 (id int, a varchar(300) not null, key using btree(a)) engine=heap; +insert t1 values (1, repeat('a', 300)); +drop table t1; + +--echo End of 5.5 tests |