diff options
author | Monty <monty@mariadb.org> | 2020-05-15 10:44:05 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2020-05-15 10:44:05 +0300 |
commit | 277aa85c9b42e2a7b778d196b307e45711ccc895 (patch) | |
tree | d9c1951ef73f93b3172e9a162997b552aa27550d /sql/log_event.cc | |
parent | 1b165720745fee94d95798418d6a8bbaaf3b4c45 (diff) | |
download | mariadb-git-277aa85c9b42e2a7b778d196b307e45711ccc895.tar.gz |
Fixed bugs found by valgrind
Other things:
- Removed innodb_encryption_tables.test from valgrind as it
takes a REALLY long time
Diffstat (limited to 'sql/log_event.cc')
-rw-r--r-- | sql/log_event.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/log_event.cc b/sql/log_event.cc index 7341add598f..f9e4365ff94 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -10228,6 +10228,8 @@ const char *sql_ex_info::init(const char *buf, const char *buf_end, } else { + if (buf_end - buf < 7) + return 0; // Wrong data field_term_len= enclosed_len= line_term_len= line_start_len= escaped_len=1; field_term = buf++; // Use first byte in string enclosed= buf++; |