From 277aa85c9b42e2a7b778d196b307e45711ccc895 Mon Sep 17 00:00:00 2001 From: Monty Date: Fri, 15 May 2020 10:44:05 +0300 Subject: Fixed bugs found by valgrind Other things: - Removed innodb_encryption_tables.test from valgrind as it takes a REALLY long time --- sql/log_event.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sql/log_event.cc') 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++; -- cgit v1.2.1