Skip to content

Commit d0bca79

Browse files
author
Marko Mäkelä
committed
dict_set_corrupted(): Initialize the trailing NUL byte of table_name.
1 parent 51e76f6 commit d0bca79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/innobase/dict/dict0dict.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -5493,10 +5493,10 @@ dict_set_corrupted(
54935493
mtr_commit(&mtr);
54945494
mem_heap_empty(heap);
54955495
table_name = static_cast<char*>(mem_heap_alloc(heap, FN_REFLEN + 1));
5496-
innobase_convert_name(
5496+
*innobase_convert_name(
54975497
table_name, FN_REFLEN,
54985498
index->table_name, strlen(index->table_name),
5499-
NULL, TRUE);
5499+
NULL, TRUE) = 0;
55005500

55015501
ib_logf(IB_LOG_LEVEL_ERROR, "%s corruption of %s in table %s in %s",
55025502
status, index->name, table_name, ctx);

0 commit comments

Comments
 (0)