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 /sql/table.cc | |
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 'sql/table.cc')
-rw-r--r-- | sql/table.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/table.cc b/sql/table.cc index 58e90787925..7c5410aed84 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -5182,7 +5182,7 @@ int TABLE::verify_constraints(bool ignore_failure) field_error.append((*chk)->name.str); my_error(ER_CONSTRAINT_FAILED, MYF(ignore_failure ? ME_JUST_WARNING : 0), field_error.c_ptr(), - s->db.str, s->error_table_name()); + s->db.str, s->table_name.str); return ignore_failure ? VIEW_CHECK_SKIP : VIEW_CHECK_ERROR; } } |