mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
Fix Bug#16021177 DICT_LOAD_FOREIGNS() PASSES UNALIGNED MEMORY TO
DTUPLE_CREATE_FROM_MEM() Align to word-size the memory occupied by tuple_buf[] memory chunk. I confirm that this change fixes the SIGBUS on Solaris. Approved by: Marko (via IM)
This commit is contained in:
parent
20cefd5ff5
commit
60ba93a803
1 changed files with 2 additions and 1 deletions
|
@ -2328,7 +2328,8 @@ dict_load_foreigns(
|
|||
ibool check_charsets) /*!< in: TRUE=check charset
|
||||
compatibility */
|
||||
{
|
||||
char tuple_buf[DTUPLE_EST_ALLOC(1)];
|
||||
ulint tuple_buf[(DTUPLE_EST_ALLOC(1) + sizeof(ulint) - 1)
|
||||
/ sizeof(ulint)];
|
||||
btr_pcur_t pcur;
|
||||
dtuple_t* tuple;
|
||||
dfield_t* dfield;
|
||||
|
|
Loading…
Add table
Reference in a new issue