Skip to content
Permalink
Browse files
Fix Innodb ASAN error on init
Backport 7c03edf from xtradb to innodb
  • Loading branch information
cvicentiu committed Jan 24, 2018
1 parent d833bb6 commit b20f821
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
@@ -604,6 +604,7 @@ buf_load()

if (dump_n == 0) {
ut_free(dump);
ut_free(dump_tmp);
ut_sprintf_timestamp(now);
buf_load_status(STATUS_NOTICE,
"Buffer pool(s) load completed at %s "
@@ -319,8 +319,8 @@ dict_mem_table_col_rename_low(
ut_ad(from_len <= NAME_LEN);
ut_ad(to_len <= NAME_LEN);

char from[NAME_LEN];
strncpy(from, s, NAME_LEN);
char from[NAME_LEN + 1];
strncpy(from, s, NAME_LEN + 1);

if (from_len == to_len) {
/* The easy case: simply replace the column name in
@@ -2781,13 +2781,13 @@ innobase_convert_identifier(
ibool file_id)/*!< in: TRUE=id is a table or database name;
FALSE=id is an UTF-8 string */
{
char nz2[MAX_TABLE_NAME_LEN + 1];
const char* s = id;
int q;

if (file_id) {

char nz[MAX_TABLE_NAME_LEN + 1];
char nz2[MAX_TABLE_NAME_LEN + 1];

/* Decode the table name. The MySQL function expects
a NUL-terminated string. The input and output strings

0 comments on commit b20f821

Please sign in to comment.