diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-02-03 18:40:27 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-02-05 01:34:17 +0100 |
commit | ef4ccb6ce2fd36014a7d065c3c4cf7611d113211 (patch) | |
tree | 5d121fe0657f3dfa20e72c145c2fbe2cef97c263 /mysql-test/r | |
parent | 3b7694b7f89412e869ac63804d424a3f29f7e2af (diff) | |
download | mariadb-git-ef4ccb6ce2fd36014a7d065c3c4cf7611d113211.tar.gz |
MDEV-18083 ASAN heap-use-after-free in Field::set_warning_truncated_wrong_value upon inserting into temporary table
remove TABLE_SHARE::error_table_name() and TABLE_SHARE::orig_table_name
(that was allocated in a wrong memroot in this bug).
instead, simply set TABLE_SHARE::table_name correctly.
Diffstat (limited to 'mysql-test/r')
-rw-r--r-- | mysql-test/r/alter_table_errors.result | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/r/alter_table_errors.result b/mysql-test/r/alter_table_errors.result index b26409e3d05..1e2a8100e84 100644 --- a/mysql-test/r/alter_table_errors.result +++ b/mysql-test/r/alter_table_errors.result @@ -27,3 +27,9 @@ t2 CREATE TEMPORARY TABLE `t2` ( `a` int(11) DEFAULT NULL, `v` int(11) GENERATED ALWAYS AS (`a`) VIRTUAL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 +drop temporary table t1, t2; +create temporary table t1 (a int); +alter table t1 add column f text; +insert into t1 values ('x','foo'); +ERROR 22007: Incorrect integer value: 'x' for column `test`.`t1`.`a` at row 1 +drop temporary table t1; |