diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-08-19 22:42:56 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-08-20 05:28:14 +0400 |
commit | a7e2cd55ab3e8bc1d658c3b6ac11c7834783acd5 (patch) | |
tree | 2ba3d1c3a4be1ef5e8c5c8100b03e90d5c0c4290 /sql-common | |
parent | 457dc9d64d9f044760adbeca6facc813b754d43b (diff) | |
download | mariadb-git-a7e2cd55ab3e8bc1d658c3b6ac11c7834783acd5.tar.gz |
MDEV-19034 ASAN unknown-crash in get_date_time_separator with PAD_CHAR_TO_FULL_LENGTH
Diffstat (limited to 'sql-common')
-rw-r--r-- | sql-common/my_time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql-common/my_time.c b/sql-common/my_time.c index 01b4d1fc2c9..5482b6dfa5c 100644 --- a/sql-common/my_time.c +++ b/sql-common/my_time.c @@ -184,7 +184,7 @@ static int get_date_time_separator(uint *number_of_fields, ulonglong flags, do { s++; - } while (my_isspace(&my_charset_latin1, *s)); + } while (s < end && my_isspace(&my_charset_latin1, *s)); *str= s; return 0; } |