diff options
Diffstat (limited to 'sql/sql_load.cc')
-rw-r--r-- | sql/sql_load.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_load.cc b/sql/sql_load.cc index f1c29203f3e..ed8c4d8d53d 100644 --- a/sql/sql_load.cc +++ b/sql/sql_load.cc @@ -1492,7 +1492,8 @@ int READ_INFO::read_field() for (;;) { - while ( to < end_of_buff) + // Make sure we have enough space for the longest multi-byte character. + while ( to + read_charset->mbmaxlen <= end_of_buff) { chr = GET; if (chr == my_b_EOF) |