diff options
author | Varun Gupta <varunraiko1803@gmail.com> | 2018-07-11 02:28:42 +0530 |
---|---|---|
committer | Varun Gupta <varunraiko1803@gmail.com> | 2018-07-11 15:22:04 +0530 |
commit | ad9d1e8c3f5a8e1b3e222921e825247aa47c4d23 (patch) | |
tree | 78db9992ab1cfd953aa320a777ee05ea2bd9d0f2 /mysql-test/r/stat_tables.result | |
parent | a2c0376e08d80d7b7dad8713d1df334b2b81eff9 (diff) | |
download | mariadb-git-ad9d1e8c3f5a8e1b3e222921e825247aa47c4d23.tar.gz |
MDEV-16552: [10.0] ASAN global-buffer-overflow in is_stat_table / statistics_for_tables_is_needed
Backport the fix f214d365121 to 10.0
Author: Sergei Golubchik <serg@mariadb.org>
Date: Tue Apr 17 00:44:34 2018 +0200
ASAN error in is_stat_table()
don't memcmp beyond the first argument's end
Also: use my_strcasecmp(table_alias_charset), like elsewhere, not memcmp
Diffstat (limited to 'mysql-test/r/stat_tables.result')
-rw-r--r-- | mysql-test/r/stat_tables.result | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/r/stat_tables.result b/mysql-test/r/stat_tables.result index fcced761283..4a608089d7d 100644 --- a/mysql-test/r/stat_tables.result +++ b/mysql-test/r/stat_tables.result @@ -516,4 +516,11 @@ use test; drop database db1; drop database db2; drop table t1; +# +# MDEV-16552: [10.0] ASAN global-buffer-overflow in is_stat_table / statistics_for_tables_is_needed +# +SET use_stat_tables = PREFERABLY; +SELECT CONVERT_TZ( '1991-09-20 10:11:02', '+00:00', 'GMT' ); +CONVERT_TZ( '1991-09-20 10:11:02', '+00:00', 'GMT' ) +NULL set use_stat_tables=@save_use_stat_tables; |